public class ShotgunDistance extends java.lang.Object implements ITimeSeriesDistance
| Constructor and Description |
|---|
ShotgunDistance(int windowLength,
boolean meanNormalization)
Constructor for the Shotgun Distance.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distance(double[] a,
double[] b)
Calculates the distance between two time series.
|
void |
setWindowLength(int windowLength)
Sets the window length.
|
public ShotgunDistance(int windowLength,
boolean meanNormalization)
windowLength - The window length.meanNormalization - Mean normalization. If false, no mean substraction
at vertical alignment of windows.public double distance(double[] a,
double[] b)
ITimeSeriesDistancedistance in interface ITimeSeriesDistancea - First time series.b - Second time series.public void setWindowLength(int windowLength)
windowLength - @see #windowLength