|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<V,DoubleDistance> de.lmu.ifi.dbs.elki.distance.distancefunction.subspace.AbstractDimensionsSelectingDoubleDistanceFunction<V>
V
- the type of FeatureVector to compute the distances in betweenpublic abstract class AbstractDimensionsSelectingDoubleDistanceFunction<V extends FeatureVector<?,?>>
Provides a distance function that computes the distance (which is a double distance) between feature vectors only in specified dimensions.
Nested Class Summary | |
---|---|
static class |
AbstractDimensionsSelectingDoubleDistanceFunction.Parameterizer
Parameterization class. |
Field Summary | |
---|---|
private BitSet |
dimensions
The dimensions to be considered for distance computation. |
static OptionID |
DIMS_ID
Dimensions parameter. |
Constructor Summary | |
---|---|
AbstractDimensionsSelectingDoubleDistanceFunction(BitSet dimensions)
Constructor. |
Method Summary | |
---|---|
DoubleDistance |
distance(V o1,
V o2)
Computes the distance between two given DatabaseObjects according to this distance function. |
boolean |
equals(Object obj)
|
DoubleDistance |
getDistanceFactory()
Method to get the distance functions factory. |
BitSet |
getSelectedDimensions()
Returns a bit set representing the selected dimensions. |
void |
setSelectedDimensions(BitSet dimensions)
Sets the selected dimensions according to the set bits in the given BitSet. |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction |
---|
instantiate, isMetric, isSymmetric |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.PrimitiveDoubleDistanceFunction |
---|
doubleDistance |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.PrimitiveDistanceFunction |
---|
getInputTypeRestriction |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.DistanceFunction |
---|
instantiate, isMetric, isSymmetric |
Field Detail |
---|
public static final OptionID DIMS_ID
private BitSet dimensions
Constructor Detail |
---|
public AbstractDimensionsSelectingDoubleDistanceFunction(BitSet dimensions)
dimensions
- Method Detail |
---|
public DoubleDistance distance(V o1, V o2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<V extends FeatureVector<?,?>,DoubleDistance>
distance
in class AbstractPrimitiveDistanceFunction<V extends FeatureVector<?,?>,DoubleDistance>
o1
- first DatabaseObjecto2
- second DatabaseObject
public BitSet getSelectedDimensions()
public void setSelectedDimensions(BitSet dimensions)
dimensions
- a BitSet designating the new selected dimensionspublic DoubleDistance getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<V extends FeatureVector<?,?>,DoubleDistance>
getDistanceFactory
in class AbstractPrimitiveDistanceFunction<V extends FeatureVector<?,?>,DoubleDistance>
public boolean equals(Object obj)
equals
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |