Package org.esa.snap.core.nn
Class NNffbpAlphaTabFast
java.lang.Object
org.esa.snap.core.nn.NNffbpAlphaTabFast
This class is for using a Neural Net (NN) of type ffbp in a Java program. The
program for training such a NN "ffbp1.0" was written in C by
-
Constructor Summary
ConstructorsConstructorDescriptionNNffbpAlphaTabFast(InputStream neuralNetStream) Creates a neural net by reading the definition from the input stream.NNffbpAlphaTabFast(String neuralNet) Creates a neural net by reading the definition from the string. -
Method Summary
-
Constructor Details
-
NNffbpAlphaTabFast
Creates a neural net by reading the definition from the string.- Parameters:
neuralNet- the neural net definition as a string- Throws:
IOException- if the neural net could not be read
-
NNffbpAlphaTabFast
Creates a neural net by reading the definition from the input stream.- Parameters:
neuralNetStream- the neural net definition as a input stream- Throws:
IOException- if the neural net could not be read
-
-
Method Details
-
getInmin
public double[] getInmin() -
setInmin
public void setInmin(double[] inmin) -
getInmax
public double[] getInmax() -
setInmax
public void setInmax(double[] inmax) -
getOutmin
public double[] getOutmin() -
getOutmax
public double[] getOutmax() -
calcJacobi
Method calcJacobi The NN is used. For a given input vector the corresponding output vector together with the corresponding Jacobi matrix is returned as an instance of classNNCalc.- Parameters:
nnInp- The vector contains thenn_ininput parameters (must be in right order).- Returns:
- The output and corresponding Jacobi matrix of the NN.
-
calc
public double[] calc(double[] nninp) Method calc The NN is used. For a given input vector the corresponding output vector is returned.- Parameters:
nninp- The vector contains thenn_ininput parameters (must be in right order).- Returns:
- The
nn_out-long output vector.
-