jhpro.nnet
Class InputMatrix
- java.lang.Object
-
- jhpro.nnet.InputMatrix
-
public class InputMatrix extends java.lang.ObjectInput 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 intgetDimension()Returns the dimension of this input matrix.InputValue[]getInputValues()InputValuegetRandomInput()voidsetInputValues(int[] ai, int[] ai1, int[] ai2)Sets input values for all three dimensions to this matrix.voidsetInputX(java.util.ArrayList<java.lang.Double> ai)voidsetInputX(int[] ai)Sets input values for each dimension to this matrix.voidsetInputXY(java.util.ArrayList<java.lang.Double> ai, java.util.ArrayList<java.lang.Double> aj)Set X and Y in one method.voidsetInputXY(P1D ai)Sets input values for X,YvoidsetInputXYZ(P2D ai)Sets input values for X,YvoidsetInputY(java.util.ArrayList<java.lang.Double> ai)Set Y valuesvoidsetInputY(int[] ai)Sets input values for Y.voidsetInputZ(java.util.ArrayList<java.lang.Double> ai)Set Z values.voidsetInputZ(int[] ai)Sets input values for Z.intsize()Returns the number of input values in this input matrix.
-
-
-
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