public class TimeSeriesUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
movingAverage(org.nd4j.linalg.api.ndarray.INDArray toAvg,
int n)
Calculate a moving average given the length
|
static org.nd4j.linalg.api.ndarray.INDArray |
reshapeTimeSeriesMaskToVector(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMask)
Reshape time series mask arrays.
|
public static org.nd4j.linalg.api.ndarray.INDArray movingAverage(org.nd4j.linalg.api.ndarray.INDArray toAvg, int n)
toAvg
- the array to averagen
- the length of the moving windowpublic static org.nd4j.linalg.api.ndarray.INDArray reshapeTimeSeriesMaskToVector(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMask)
timeSeriesMask
- Mask array to reshape to a column vectorCopyright © 2016. All Rights Reserved.