de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries
Class DTWDistanceFunction
java.lang.Object
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractPrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>
de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractVectorDoubleDistanceFunction
de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.AbstractEditDistanceFunction
de.lmu.ifi.dbs.elki.distance.distancefunction.timeseries.DTWDistanceFunction
- All Implemented Interfaces:
- DistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDistanceFunction<NumberVector<?,?>,DoubleDistance>, PrimitiveDoubleDistanceFunction<NumberVector<?,?>>, InspectionUtilFrequentlyScanned, Parameterizable
@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
Provides the Dynamic Time Warping distance for FeatureVectors.
DTWDistanceFunction
public DTWDistanceFunction(double bandSize)
- Constructor.
- Parameters:
bandSize
- Band size
doubleDistance
public double doubleDistance(NumberVector<?,?> v1,
NumberVector<?,?> v2)
- Provides the Dynamic Time Warping distance between the given two vectors.
- Parameters:
v1
- first Objectv2
- second Object
- Returns:
- the Dynamic Time Warping distance between the given two vectors as
an instance of
DoubleDistance
.