
V - the type of FeatureVector to compute the distances in betweenpublic abstract class AbstractDimensionsSelectingDistanceFunction<V extends FeatureVector<?>> extends AbstractPrimitiveDistanceFunction<V> implements PrimitiveDistanceFunction<V>, DimensionSelectingSubspaceDistanceFunction<V>
long[].| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractDimensionsSelectingDistanceFunction.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
dimensions
The dimensions to be considered for distance computation.
|
| Constructor and Description |
|---|
AbstractDimensionsSelectingDistanceFunction(long[] dimensions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(V o1,
V o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(Object obj) |
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.
|
instantiate, isMetric, isSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputTypeRestrictioninstantiate, isMetric, isSymmetricprotected long[] dimensions
public AbstractDimensionsSelectingDistanceFunction(long[] dimensions)
dimensions - public double distance(V o1, V o2)
PrimitiveDistanceFunctiondistance in interface PrimitiveDistanceFunction<V extends FeatureVector<?>>distance in class AbstractPrimitiveDistanceFunction<V extends FeatureVector<?>>o1 - first DatabaseObjecto2 - second DatabaseObjectpublic long[] getSelectedDimensions()
DimensionSelectingSubspaceDistanceFunctiongetSelectedDimensions in interface DimensionSelectingSubspaceDistanceFunction<V extends FeatureVector<?>>public void setSelectedDimensions(long[] dimensions)
DimensionSelectingSubspaceDistanceFunctionsetSelectedDimensions in interface DimensionSelectingSubspaceDistanceFunction<V extends FeatureVector<?>>dimensions - a bit set designating the new selected dimensionsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.