org.encog.util.arrayutil
Class TemporalWindowArray
- java.lang.Object
-
- org.encog.util.arrayutil.TemporalWindowArray
-
public class TemporalWindowArray extends java.lang.ObjectProduce a time-series from an array.
-
-
Constructor Summary
Constructors Constructor and Description TemporalWindowArray(int theInputWindow, int thePredictWindow)Construct a time-series from an array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidanalyze(double[] array)Analyze the 1D array.voidanalyze(double[][] array)Analyze the 2D array.intcountInputFields()Count the number of input fields, or fields used to predict.intcountPredictFields()Count the number of fields that are that are in the prediction.TemporalWindowField[]getFields()intgetInputWindow()intgetPredictWindow()MLDataSetprocess(double[] data)Process the array.MLDataSetprocess(double[][] data)Processes the specified data array in an IMLDataset.MLDataPairprocessToPair(double[] data)Process the data array and returns an MLdatapair.voidsetInputWindow(int theInputWindow)voidsetPredictWindow(int thePredictWindow)
-
-
-
Constructor Detail
-
TemporalWindowArray
public TemporalWindowArray(int theInputWindow, int thePredictWindow)Construct a time-series from an array.- Parameters:
theInputWindow- The size of the input window.thePredictWindow- The size of the predict window.
-
-
Method Detail
-
analyze
public final void analyze(double[] array)
Analyze the 1D array.- Parameters:
array- The array to analyze.
-
analyze
public final void analyze(double[][] array)
Analyze the 2D array.- Parameters:
array- The 2D array to analyze.
-
countInputFields
public final int countInputFields()
Count the number of input fields, or fields used to predict.- Returns:
- The number of input fields.
-
countPredictFields
public final int countPredictFields()
Count the number of fields that are that are in the prediction.- Returns:
- The number of fields predicted.
-
getFields
public final TemporalWindowField[] getFields()
- Returns:
- The fields that are to be processed.
-
getInputWindow
public final int getInputWindow()
- Returns:
- the inputWindow
-
getPredictWindow
public final int getPredictWindow()
- Returns:
- the predictWindow
-
process
public final MLDataSet process(double[] data)
Process the array.- Parameters:
data- The array to process.- Returns:
- A neural data set that contains the time-series.
-
setInputWindow
public final void setInputWindow(int theInputWindow)
- Parameters:
theInputWindow- the inputWindow to set
-
setPredictWindow
public final void setPredictWindow(int thePredictWindow)
- Parameters:
thePredictWindow- the predictWindow to set
-
process
public MLDataSet process(double[][] data)
Processes the specified data array in an IMLDataset. You can send a [][] array directly with this method.- Parameters:
data- The data.- Returns:
- The data set.
-
processToPair
public MLDataPair processToPair(double[] data)
Process the data array and returns an MLdatapair.- Parameters:
data- The array to process.- Returns:
- MLDatapair containing data.
-
-
DMelt 3.0 © DataMelt by jWork.ORG