public class WeightedDynamicTimeWarping extends java.lang.Object implements ITimeSeriesDistance
| Constructor and Description |
|---|
WeightedDynamicTimeWarping(double g,
double maximumWeight,
IScalarDistance d)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected double[] |
calculateWeights(int length)
Calculates the weight vector via the Modified logistic weight function (see
paper 4.2).
|
double |
distance(double[] a,
double[] b)
Calculates the distance between two time series.
|
public WeightedDynamicTimeWarping(double g,
double maximumWeight,
IScalarDistance d)
g - Controls the penelization in weights for points with
larger phase difference.maximumWeight - The desired upper bound for the weight parameter that is
used to penalize points with higher phase difference.public double distance(double[] a,
double[] b)
ITimeSeriesDistancedistance in interface ITimeSeriesDistancea - First time series.b - Second time series.protected double[] calculateWeights(int length)
length - Length of the time series, i.e. length of the weight vector. Is
guaranteed to be greater 0 within this class.