Package org.ddogleg.optimization.wrap
Class LsToNonLinear
java.lang.Object
org.ddogleg.optimization.wrap.LsToNonLinear
- All Implemented Interfaces:
FunctionNtoS
Converts a least squares function into a nonlinear optimization function.
F(x) = sum f_i(x)^2
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
The number of inputs.double
process
(double[] input) Computes the output given an array of inputs.
-
Constructor Details
-
LsToNonLinear
-
-
Method Details
-
getNumOfInputsN
public int getNumOfInputsN()Description copied from interface:FunctionNtoS
The number of inputs. Typically the parameters you are optimizing.- Specified by:
getNumOfInputsN
in interfaceFunctionNtoS
- Returns:
- Number of inputs.
-
process
public double process(double[] input) Description copied from interface:FunctionNtoS
Computes the output given an array of inputs.- Specified by:
process
in interfaceFunctionNtoS
- Parameters:
input
- Array containing input values- Returns:
- The output.
-