
@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
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ERPDistanceFunction.Parameterizer
Parameterization class. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private double | 
g
Keeps the currently set g. 
 | 
static OptionID | 
G_ID
G parameter 
 | 
bandSize, BANDSIZE_ID| Constructor and Description | 
|---|
ERPDistanceFunction(double bandSize,
                   double g)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
doubleDistance(NumberVector<?> v1,
              NumberVector<?> v2)
Provides the Edit Distance With Real Penalty distance between the given two
 vectors. 
 | 
boolean | 
equals(Object obj)  | 
getInputTypeRestrictiondistance, getDistanceFactoryinstantiate, isMetric, isSymmetricclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstantiate, isMetric, isSymmetricpublic static final OptionID G_ID
private final double g
public ERPDistanceFunction(double bandSize,
                   double g)
bandSize - Band sizeg - G parameterpublic double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
v1 - first Objectv2 - second ObjectDoubleDistance.public boolean equals(Object obj)
equals in class AbstractEditDistanceFunction