Package org.ddogleg.optimization.wrap
Class LsToNonLinearDeriv<S extends DMatrix>
java.lang.Object
org.ddogleg.optimization.wrap.LsToNonLinearDeriv<S>
- All Implemented Interfaces:
FunctionNtoN
Convert the Jacobian of a least squares function into a nonlinear optimization gradient.
G(x) = sum 2*f'_i(x)*f_i(x)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LsToNonLinearDeriv
-
-
Method Details
-
getN
public int getN()Description copied from interface:FunctionNtoNReturns the number of inputs and outputs for this function.- Specified by:
getNin interfaceFunctionNtoN
-
process
public void process(double[] input, double[] output) Description copied from interface:FunctionNtoNProcesses the function.- Specified by:
processin interfaceFunctionNtoN- Parameters:
input- Array with the inputs of length N. Not modified.output- Array for storing the output of length N. Modified.
-