de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries
Class ERPDistanceFunction

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
      extended by de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
          extended by de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.AbstractEditDistanceFunction
              extended by 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.


Nested Class Summary
static class ERPDistanceFunction.Parameterizer
          Parameterization class.
 
Field Summary
private  double g
          Keeps the currently set g.
static OptionID G_ID
          G parameter
 
Fields inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.AbstractEditDistanceFunction
bandSize, BANDSIZE_ID
 
Constructor Summary
ERPDistanceFunction(double bandSize, double g)
          Constructor.
 
Method Summary
 double doubleDistance(NumberVector<?,?> v1, NumberVector<?,?> v2)
          Provides the Edit Distance With Real Penalty distance between the given two vectors.
 boolean equals(Object obj)
           
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.AbstractEditDistanceFunction
getInputTypeRestriction
 
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
distance, getDistanceFactory
 
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.DistanceFunction
instantiate, isMetric, isSymmetric
 

Field Detail

G_ID

public static final OptionID G_ID
G parameter


g

private double g
Keeps the currently set g.

Constructor Detail

ERPDistanceFunction

public ERPDistanceFunction(double bandSize,
                           double g)
Constructor.

Parameters:
bandSize - Band size
g - G parameter
Method Detail

doubleDistance

public double doubleDistance(NumberVector<?,?> v1,
                             NumberVector<?,?> v2)
Provides the Edit Distance With Real Penalty distance between the given two vectors.

Parameters:
v1 - first Object
v2 - 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

Release 0.4.0 (2011-09-20_1324)