public final class LagOperator extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
apply(double[] series,
int index,
int times)
Apply the lag operator the given number of times at the given index.
|
static double |
apply(TimeSeries series,
int index)
Apply the lag operator once at the given index.
|
static double |
apply(TimeSeries series,
int index,
int times)
Apply the lag operator the given number of times at the given index.
|
static double |
apply(TimeSeries series,
OffsetDateTime dateTime)
Apply the lag operator once at the given date-time.
|
static double |
apply(TimeSeries series,
OffsetDateTime dateTime,
int times)
Apply the lag operator the given number of times at the given date-time.
|
public static double apply(TimeSeries series, int index)
series - the series to apply the lag operator to.index - the index to apply the lag operator at.public static double apply(TimeSeries series, OffsetDateTime dateTime)
series - the series to apply the lag operator to.dateTime - the date-time to apply the lag operator at.public static double apply(TimeSeries series, int index, int times)
series - the series to apply the lag operator to.index - the index to apply the lag operator at.times - the number of times to apply the lag operator.public static double apply(TimeSeries series, OffsetDateTime dateTime, int times)
series - the series to apply the lag operator to.dateTime - the date-time to apply the lag operator at.times - the number of times to apply the lag operator.public static double apply(double[] series,
int index,
int times)
series - the series to apply the lag operator to.index - the index to apply the lag operator at.times - the number of times to apply the lag operator.