Package elki.distance.subspace
Interface DimensionSelectingSubspaceDistance<O>
-
- Type Parameters:
O
- Object type
- All Superinterfaces:
Distance<O>
- All Known Implementing Classes:
AbstractDimensionsSelectingDistance
,OnedimensionalDistance
,SubspaceEuclideanDistance
,SubspaceLPNormDistance
,SubspaceManhattanDistance
,SubspaceMaximumDistance
public interface DimensionSelectingSubspaceDistance<O> extends Distance<O>
Interface for dimension selecting subspace distance functions.- Since:
- 0.5.0
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long[]
getSelectedDimensions()
Returns a bit set representing the selected dimensions.void
setSelectedDimensions(long[] dimensions)
Sets the selected dimensions according to the set bits in the given BitSet.-
Methods inherited from interface elki.distance.Distance
getInputTypeRestriction, instantiate, isMetric, isSquared, isSymmetric
-
-
-
-
Method Detail
-
getSelectedDimensions
long[] getSelectedDimensions()
Returns a bit set representing the selected dimensions.Warning: no defensive copy is performed.
- Returns:
- a bit set representing the selected dimensions
-
setSelectedDimensions
void setSelectedDimensions(long[] dimensions)
Sets the selected dimensions according to the set bits in the given BitSet.Warning: no defensive copy is performed.
- Parameters:
dimensions
- a bit set designating the new selected dimensions
-
-