public class EuclideanDistance extends java.lang.Object implements ITimeSeriesDistance
A and B
of length n is defined as
\sqrt{\sum_{i=0}^{n} (A_i - B_i)^2 }. Therefore, it is required
for A and B to be of the same length.| Constructor and Description |
|---|
EuclideanDistance() |
| 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.