Documentation of 'net.finmath.rootfinder.NewtonsMethod' Java class
NewtonsMethod
net.finmath.rootfinder

Class NewtonsMethod

    • Constructor Detail

      • NewtonsMethod

        public NewtonsMethod(double guess)
        Parameters:
        guess - initial guess where the solver will start
    • Method Detail

      • getNextPoint

        public double getNextPoint()
        Specified by:
        getNextPoint in interface RootFinderWithDerivative
        Returns:
        Next point for which a value should be set using setValue.
      • setValueAndDerivative

        public void setValueAndDerivative(double value,
                                          double derivative)
        Specified by:
        setValueAndDerivative in interface RootFinderWithDerivative
        Parameters:
        value - The value corresponding to the point returned by previous getNextPoint call.
        derivative - The derivative corresponding to the point returned by previous getNextPoint call.
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface RootFinderWithDerivative
        Returns:
        Returns true if the solver is done (accuracy achieved or unable to improve)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.