org.encog.util.arrayutil
public class TemporalWindowArray extends Object
Constructor and Description |
---|
TemporalWindowArray(int theInputWindow,
int thePredictWindow)
Construct a time-series from an array.
|
Modifier and Type | Method and Description |
---|---|
void |
analyze(double[] array)
Analyze the 1D array.
|
void |
analyze(double[][] array)
Analyze the 2D array.
|
int |
countInputFields()
Count the number of input fields, or fields used to predict.
|
int |
countPredictFields()
Count the number of fields that are that are in the prediction.
|
TemporalWindowField[] |
getFields() |
int |
getInputWindow() |
int |
getPredictWindow() |
MLDataSet |
process(double[] data)
Process the array.
|
MLDataSet |
process(double[][] data)
Processes the specified data array in an IMLDataset.
|
MLDataPair |
processToPair(double[] data)
Process the data array and returns an MLdatapair.
|
void |
setInputWindow(int theInputWindow) |
void |
setPredictWindow(int thePredictWindow) |
public TemporalWindowArray(int theInputWindow, int thePredictWindow)
theInputWindow
- The size of the input window.thePredictWindow
- The size of the predict window.public final void analyze(double[] array)
array
- The array to analyze.public final void analyze(double[][] array)
array
- The 2D array to analyze.public final int countInputFields()
public final int countPredictFields()
public final TemporalWindowField[] getFields()
public final int getInputWindow()
public final int getPredictWindow()
public final MLDataSet process(double[] data)
data
- The array to process.public final void setInputWindow(int theInputWindow)
theInputWindow
- the inputWindow to setpublic final void setPredictWindow(int thePredictWindow)
thePredictWindow
- the predictWindow to setpublic MLDataSet process(double[][] data)
data
- The data.public MLDataPair processToPair(double[] data)
data
- The array to process.Copyright © 2014. All Rights Reserved.