Documentation of 'org.encog.util.arrayutil.TemporalWindowArray' Java class
TemporalWindowArray
org.encog.util.arrayutil

Class TemporalWindowArray



  • public class TemporalWindowArray
    extends java.lang.Object
    Produce a time-series from an array.
    • 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

You see the box below because you did not login.