@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
Modifier and Type | Class and Description |
---|---|
static class |
DTWDistanceFunction.Parameterizer
Parameterization class.
|
bandSize, BANDSIZE_ID
Constructor and Description |
---|
DTWDistanceFunction(double bandSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleDistance(NumberVector<?> v1,
NumberVector<?> v2)
Provides the Dynamic Time Warping distance between the given two vectors.
|
equals, getInputTypeRestriction
dimensionality, dimensionality, dimensionality, dimensionality, distance, getDistanceFactory
instantiate, isMetric, isSymmetric
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate, isMetric, isSymmetric
public DTWDistanceFunction(double bandSize)
bandSize
- Band sizepublic double doubleDistance(NumberVector<?> v1, NumberVector<?> v2)
v1
- first Objectv2
- second ObjectDoubleDistance
.