@Title(value="Edit Distance with Real Penalty") @Reference(authors="L. Chen, R. Ng", title="On the marriage of Lp-norms and edit distance", booktitle="Proc. 13th Int. Conf. on Very Large Data Bases (VLDB \'04)", url="http://www.vldb.org/conf/2004/RS21P2.PDF", bibkey="DBLP:conf/vldb/ChenN04") public class ERPDistanceFunction extends DTWDistanceFunction
Reference:
L. Chen and R. Ng
On the marriage of Lp-norms and edit distance
Proc. 13th Int. Conf. on Very Large Data Bases (VLDB '04)
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 vectors according to this distance
function.
|
boolean |
equals(java.lang.Object obj) |
protected void |
firstRow(double[] buf,
int band,
NumberVector v1,
NumberVector v2,
int dim2)
Fill the first row.
|
int |
hashCode() |
effectiveBandSize, getInputTypeRestriction
dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality, dimensionality
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
instantiate
isMetric, isSquared, isSymmetric
public ERPDistanceFunction(double bandSize, double g)
bandSize
- Band sizeg
- G parameterpublic double distance(NumberVector v1, NumberVector v2)
NumberVectorDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class DTWDistanceFunction
v1
- first vectorv2
- second vectorprotected 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
TODO: support Euclidean, Manhattan, others?
delta
in class DTWDistanceFunction
val1
- First valueval2
- Second valuepublic boolean equals(java.lang.Object obj)
equals
in class AbstractEditDistanceFunction
public int hashCode()
hashCode
in class AbstractEditDistanceFunction
Copyright © 2019 ELKI Development Team. License information.