@Title(value="Dynamic Time Warping Distance Function") @Reference(authors="Berndt, D. and Clifford, J.", title="Using dynamic time warping to find patterns in time series", booktitle="AAAI-94 Workshop on Knowledge Discovery in Databases, 1994", url="http://www.aaai.org/Papers/Workshops/1994/WS-94-03/WS94-03-031.pdf") public class DTWDistanceFunction extends AbstractEditDistanceFunction
Berndt, D. and Clifford, J.
Using dynamic time warping to find patterns in time series
AAAI-94 Workshop on Knowledge Discovery in Databases, 1994
Modifier and Type | Class and Description |
---|---|
static class |
DTWDistanceFunction.Parameterizer
Parameterization class.
|
bandSize
Constructor and Description |
---|
DTWDistanceFunction()
Constructor.
|
DTWDistanceFunction(double bandSize)
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.
|
protected void |
firstRow(double[] buf,
int band,
NumberVector v1,
NumberVector v2,
int dim2)
Fill the first row.
|
effectiveBandSize, equals, getInputTypeRestriction
dimensionality, dimensionality, dimensionality, dimensionality
instantiate, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isMetric, isSymmetric
public DTWDistanceFunction()
public DTWDistanceFunction(double bandSize)
bandSize
- Band sizepublic double distance(NumberVector v1, NumberVector v2)
PrimitiveDistanceFunction
distance
in interface NumberVectorDistanceFunction<NumberVector>
distance
in interface PrimitiveDistanceFunction<NumberVector>
distance
in class AbstractPrimitiveDistanceFunction<NumberVector>
v1
- first DatabaseObjectv2
- second DatabaseObjectprotected void firstRow(double[] buf, int band, NumberVector v1, NumberVector v2, int dim2)
buf
- Bufferband
- Bandwidthv1
- First vectorv2
- Second vectordim2
- Dimensionality of secondprotected double delta(double val1, double val2)
val1
- First valueval2
- Second valueCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.