Class LsToNonLinear

java.lang.Object
org.ddogleg.optimization.wrap.LsToNonLinear
All Implemented Interfaces:
FunctionNtoS

public class LsToNonLinear extends Object implements FunctionNtoS
Converts a least squares function into a nonlinear optimization function. F(x) = sum f_i(x)^2
  • Constructor Details

  • 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 interface FunctionNtoS
      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 interface FunctionNtoS
      Parameters:
      input - Array containing input values
      Returns:
      The output.