Class CachedNumericalGradientLineFunction

java.lang.Object
org.ddogleg.optimization.wrap.CachedNumericalGradientLineFunction
All Implemented Interfaces:
CoupledDerivative, CoupledGradient, GradientLineFunction, LineSearchFunction

public class CachedNumericalGradientLineFunction extends Object implements GradientLineFunction
Numerically computes the gradient and line derivative. Results are cached independently for function output, gradient, and line derivative.
  • Field Details

    • N

      protected int N
    • start

      protected double[] start
    • direction

      protected double[] direction
    • cachedFunction

      protected boolean cachedFunction
    • cachedGradient

      protected boolean cachedGradient
    • cachedDerivative

      protected boolean cachedDerivative
    • currentInput

      protected double[] currentInput
    • currentGradient

      protected double[] currentGradient
    • currentOutput

      protected double currentOutput
    • currentStep

      protected double currentStep
    • currentDerivative

      protected double currentDerivative
    • function

      protected FunctionNtoS function
    • gradient

      protected FunctionNtoN gradient
    • lineDerivative

      protected FunctionStoS lineDerivative
  • Constructor Details

    • CachedNumericalGradientLineFunction

      public CachedNumericalGradientLineFunction(FunctionNtoS function)
  • Method Details