public class ManhattanDistance extends java.lang.Object implements ITimeSeriesDistance
A and B
of length n is defined as
\sum_{i=0}^{n} |A_i - B_i|. Therefore, it is required for
A and B to be of the same length.| Constructor and Description |
|---|
ManhattanDistance() |
| Modifier and Type | Method and Description |
|---|---|
double |
distance(double[] a,
double[] b)
Calculates the distance between two time series.
|
public double distance(double[] a,
double[] b)
ITimeSeriesDistancedistance in interface ITimeSeriesDistancea - First time series.b - Second time series.