Documentation of 'jhpro.nnet.InputMatrix' Java class
InputMatrix
jhpro.nnet

Class InputMatrix



  • public class InputMatrix
    extends java.lang.Object
    Input matrix.
    • Constructor Summary

      Constructors 
      Constructor and Description
      InputMatrix(int i, int j)
      Creates an instance of InputMatrix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getDimension()
      Returns the dimension of this input matrix.
      InputValue[] getInputValues() 
      InputValue getRandomInput() 
      void setInputValues(int[] ai, int[] ai1, int[] ai2)
      Sets input values for all three dimensions to this matrix.
      void setInputX(java.util.ArrayList<java.lang.Double> ai) 
      void setInputX(int[] ai)
      Sets input values for each dimension to this matrix.
      void setInputXY(java.util.ArrayList<java.lang.Double> ai, java.util.ArrayList<java.lang.Double> aj)
      Set X and Y in one method.
      void setInputXY(P1D ai)
      Sets input values for X,Y
      void setInputXYZ(P2D ai)
      Sets input values for X,Y
      void setInputY(java.util.ArrayList<java.lang.Double> ai)
      Set Y values
      void setInputY(int[] ai)
      Sets input values for Y.
      void setInputZ(java.util.ArrayList<java.lang.Double> ai)
      Set Z values.
      void setInputZ(int[] ai)
      Sets input values for Z.
      int size()
      Returns the number of input values in this input matrix.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputMatrix

        public InputMatrix(int i,
                           int j)
        Creates an instance of InputMatrix. This is the only constructor of the class and has the following arguments: size: the number of input values (1...N) dim: the dimension of this matrix (1...3)
        Parameters:
        i -
        j -
    • Method Detail

      • setInputX

        public void setInputX(int[] ai)
        Sets input values for each dimension to this matrix. These methods can be used sequentially, if you want an input matrix with 1, 2, or 3 dimensions. The arguments x, y, and z are arrays of type int. To define a 3-dimensional input matrix, you may use the setInputValues(x,y,z) method.
        Parameters:
        ai -
      • setInputX

        public void setInputX(java.util.ArrayList<java.lang.Double> ai)
      • setInputXY

        public void setInputXY(java.util.ArrayList<java.lang.Double> ai,
                               java.util.ArrayList<java.lang.Double> aj)
        Set X and Y in one method.
        Parameters:
        ai -
        aj -
      • setInputY

        public void setInputY(int[] ai)
        Sets input values for Y.
        Parameters:
        ai -
      • setInputY

        public void setInputY(java.util.ArrayList<java.lang.Double> ai)
        Set Y values
        Parameters:
        ai -
      • setInputZ

        public void setInputZ(int[] ai)
        Sets input values for Z.
        Parameters:
        ai -
      • setInputZ

        public void setInputZ(java.util.ArrayList<java.lang.Double> ai)
        Set Z values.
        Parameters:
        ai -
      • setInputXY

        public void setInputXY(P1D ai)
        Sets input values for X,Y
        Parameters:
        ai -
      • setInputXYZ

        public void setInputXYZ(P2D ai)
        Sets input values for X,Y
        Parameters:
        ai -
      • setInputValues

        public void setInputValues(int[] ai,
                                   int[] ai1,
                                   int[] ai2)
        Sets input values for all three dimensions to this matrix. This method is used, when you want an input matrix with three dimensions. The arguments x, y, and z are arrays of type int.
        Parameters:
        ai -
        ai1 -
        ai2 -
      • getDimension

        public int getDimension()
        Returns the dimension of this input matrix.
        Returns:
      • getInputValues

        public InputValue[] getInputValues()
      • getRandomInput

        public InputValue getRandomInput()
      • size

        public int size()
        Returns the number of input values in this input matrix.
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.