public class MoveSplitMerge extends java.lang.Object implements ITimeSeriesDistance
x to y is |x-y|. The cost for a
Split and Merge is defined by a constant c.
Let S = (s_1, s_2, .., s_n) be a sequence of Move/Split/Merge
operations with s_i either Move, Split or a Merge. The
Move-Split-Merge distance between to time series A and
B is defined be the cost of the lowest-cost transformation
S*, such that transform(S*, A) = B.| Constructor and Description |
|---|
MoveSplitMerge(double c)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(double[] a,
double[] b)
Calculates the distance between two time series.
|
public MoveSplitMerge(double c)
c - The constant cost for Split and Merge operations.public double distance(double[] a,
double[] b)
ITimeSeriesDistancedistance in interface ITimeSeriesDistancea - First time series.b - Second time series.