Class LsToNonLinearDeriv<S extends DMatrix>

All Implemented Interfaces:

public class LsToNonLinearDeriv<S extends DMatrix> extends Object implements 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 Details

  • Method Details

    • getN

      public int getN()
      Description copied from interface: FunctionNtoN
      Returns the number of inputs and outputs for this function.
      Specified by:
      getN in interface FunctionNtoN
    • process

      public void process(double[] input, double[] output)
      Description copied from interface: FunctionNtoN
      Processes the function.
      Specified by:
      process in interface FunctionNtoN
      input - Array with the inputs of length N. Not modified.
      output - Array for storing the output of length N. Modified.