org.ddogleg.optimization.wrap
Class LsToNonLinear
- java.lang.Object
-
- org.ddogleg.optimization.wrap.LsToNonLinear
-
- All Implemented Interfaces:
- FunctionNtoS
public class LsToNonLinear extends java.lang.Object implements FunctionNtoS
Converts a least squares function into a nonlinear optimization function. F(x) = sum f_i(x)^2
-
-
Constructor Summary
Constructors Constructor and Description LsToNonLinear(FunctionNtoM func)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumOfInputsN()The number of inputs.doubleprocess(double[] input)Computes the output given an array of inputs.
-
-
-
Constructor Detail
-
LsToNonLinear
public LsToNonLinear(FunctionNtoM func)
-
-
Method Detail
-
getNumOfInputsN
public int getNumOfInputsN()
Description copied from interface:FunctionNtoSThe number of inputs. Typically the parameters you are optimizing.- Specified by:
getNumOfInputsNin interfaceFunctionNtoS- Returns:
- Number of inputs.
-
process
public double process(double[] input)
Description copied from interface:FunctionNtoSComputes the output given an array of inputs.- Specified by:
processin interfaceFunctionNtoS- Parameters:
input- Array containing input values- Returns:
- The output.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG