de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries
Class AbstractEditDistanceFunction<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.timeseries.AbstractEditDistanceFunction<V>
- Type Parameters:
V
- the type of NumberVector to compute the distances in between
- All Implemented Interfaces:
- DistanceFunction<V,DoubleDistance>, MeasurementFunction<V,DoubleDistance>, Parameterizable
- Direct Known Subclasses:
- DTWDistanceFunction, EDRDistanceFunction, ERPDistanceFunction
public abstract class AbstractEditDistanceFunction<V extends NumberVector<V,?>>
- extends AbstractDoubleDistanceFunction<V>
Provides the Edit Distance for NumberVectors.
- Author:
- Thomas Bernecker
Constructor Summary |
protected |
AbstractEditDistanceFunction()
Provides a Dynamic Time Warping distance function that can compute the
Dynamic Time Warping distance (that is a DoubleDistance) for NumberVectors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BANDSIZE_ID
public static final OptionID BANDSIZE_ID
- OptionID for
BANDSIZE_PARAM
BANDSIZE_PARAM
protected final DoubleParameter BANDSIZE_PARAM
- BANDSIZE parameter
bandSize
protected double bandSize
- Keeps the currently set bandSize.
AbstractEditDistanceFunction
protected AbstractEditDistanceFunction()
- Provides a Dynamic Time Warping distance function that can compute the
Dynamic Time Warping distance (that is a DoubleDistance) for NumberVectors.
setParameters
public List<String> setParameters(List<String> args)
throws ParameterException
- Description copied from class:
AbstractParameterizable
- Grabs all specified options from the option handler. Any extending class
should call this method first and return the returned array without further
changes, but after setting further required parameters. An example for
overwriting this method taking advantage from the previously (in
superclasses) defined options would be:
{
List remainingParameters = super.setParameters(args);
// set parameters for your class
// for example like this:
if(isSet(MY_PARAM_VALUE_PARAM))
{
myParamValue = getParameterValue(MY_PARAM_VALUE_PARAM);
}
.
.
.
return remainingParameters;
// or in case of attributes requesting parameters themselves
// return parameterizableAttribbute.setParameters(remainingParameters);
}
- Specified by:
setParameters
in interface Parameterizable
- Overrides:
setParameters
in class AbstractParameterizable
- Parameters:
args
- parameters to set the attributes accordingly to
- Returns:
- a list containing the unused parameters
- Throws:
ParameterException
- in case of wrong parameter-setting