de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries
Class ERPDistanceFunction
java.lang.Object
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.AbstractEditDistanceFunction
de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.ERPDistanceFunction
- All Implemented Interfaces:
- DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable
@Title(value="Edit Distance with Real Penalty")
@Reference(authors="L. Chen and R. Ng",
title="On the marriage of Lp-norms and edit distance",
booktitle="VLDB \'04: Proceedings of the Thirtieth international conference on Very large data bases",
url="http://www.vldb.org/conf/2004/RS21P2.PDF")
public class ERPDistanceFunction
- extends AbstractEditDistanceFunction
Provides the Edit Distance With Real Penalty distance for FeatureVectors.
Field Summary |
private double |
g
Keeps the currently set g. |
static OptionID |
G_ID
G parameter |
G_ID
public static final OptionID G_ID
- G parameter
g
private double g
- Keeps the currently set g.
ERPDistanceFunction
public ERPDistanceFunction(double bandSize,
double g)
- Constructor.
- Parameters:
bandSize
- Band sizeg
- G parameter
doubleDistance
public double doubleDistance(NumberVector<?,?> v1,
NumberVector<?,?> v2)
- Provides the Edit Distance With Real Penalty distance between the given two
vectors.
- Parameters:
v1
- first Objectv2
- second Object
- Returns:
- the Edit Distance With Real Penalty distance between the given two
vectors as an instance of
DoubleDistance
.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class AbstractEditDistanceFunction