de.lmu.ifi.dbs.elki.distance.distancefunction
Class AbstractDimensionsSelectingDoubleDistanceFunction<V extends NumberVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.distance.AbstractMeasurementFunction<O,D>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDistanceFunction<O,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDoubleDistanceFunction<V>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDimensionsSelectingDoubleDistanceFunction<V>
- All Implemented Interfaces:
- DistanceFunction<V,DoubleDistance>, MeasurementFunction<V,DoubleDistance>, Loggable, Parameterizable
- Direct Known Subclasses:
- DimensionsSelectingEuklideanDistanceFunction
public abstract class AbstractDimensionsSelectingDoubleDistanceFunction<V extends NumberVector<V,?>>
- extends AbstractDoubleDistanceFunction<V>
Provides a distance function that computes the distance
(which is a double distance) between feature vectors only in specified dimensions.
- Author:
- Elke Achtert
Field Summary |
private BitSet |
dimensions
The dimensions to be considered for distance computation. |
static String |
DIMS_D
Description for parameter dim. |
static String |
DIMS_P
Option string for parameter dims. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIMS_P
public static final String DIMS_P
- Option string for parameter dims.
- See Also:
- Constant Field Values
DIMS_D
public static final String DIMS_D
- Description for parameter dim.
- See Also:
- Constant Field Values
dimensions
private BitSet dimensions
- The dimensions to be considered for distance computation.
AbstractDimensionsSelectingDoubleDistanceFunction
public AbstractDimensionsSelectingDoubleDistanceFunction()
- Provides a distance function that computes the distance
(which is a double distance) between feature vectors only in specified dimensions.
setParameters
public String[] setParameters(String[] args)
throws ParameterException
- Description copied from interface:
Parameterizable
- Sets the attributes of the class accordingly to the given parameters.
Returns a new String array containing those entries of the
given array that are neither expected nor used by this
Parameterizable.
- Specified by:
setParameters
in interface Parameterizable
- Overrides:
setParameters
in class AbstractParameterizable
- Parameters:
args
- parameters to set the attributes accordingly to
- Returns:
- String[] an array containing the unused parameters
- Throws:
ParameterException
- in case of wrong parameter-setting- See Also:
Parameterizable.setParameters(String[])
getSelectedDimensions
public BitSet getSelectedDimensions()
- Returns a bit set representing the selected dimensions.
- Returns:
- a bit set representing the selected dimensions
setSelectedDimensions
public void setSelectedDimensions(BitSet dimensions)
- Sets the selected dimensions according to the set bits in the given BitSet.
- Parameters:
dimensions
- a BitSet designating the new selected dimensions