@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 DTWDistanceFunction
L. Chen and R. Ng
On the marriage of Lp-norms and edit distance
VLDB '04: Proceedings of the Thirtieth international conference on Very large
data bases
Modifier and Type | Class and Description |
---|---|
static class |
ERPDistanceFunction.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
g
Gap value.
|
bandSize
Constructor and Description |
---|
ERPDistanceFunction(double bandSize,
double g)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
delta(double val1,
double val2)
Compute the delta of two values.
|
double |
distance(NumberVector v1,
NumberVector v2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
equals(Object obj) |
protected void |
firstRow(double[] buf,
int band,
NumberVector v1,
NumberVector v2,
int dim2)
Fill the first row.
|
effectiveBandSize, getInputTypeRestriction
dimensionality, dimensionality, dimensionality, dimensionality
instantiate, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isMetric, isSymmetric
public ERPDistanceFunction(double bandSize, double g)
bandSize
- Band sizeg
- G parameterpublic double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class DTWDistanceFunction
v1
- first DatabaseObjectv2
- second DatabaseObjectprotected void firstRow(double[] buf, int band, NumberVector v1, NumberVector v2, int dim2)
DTWDistanceFunction
firstRow
in class DTWDistanceFunction
buf
- Bufferband
- Bandwidthv1
- First vectorv2
- Second vectordim2
- Dimensionality of secondprotected double delta(double val1, double val2)
DTWDistanceFunction
delta
in class DTWDistanceFunction
val1
- First valueval2
- Second valuepublic boolean equals(Object obj)
equals
in class AbstractEditDistanceFunction
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.