- java.lang.Object
-
- org.quantlib.NewtonSafe
-
- All Implemented Interfaces:
AutoCloseable,org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
public class NewtonSafe extends Object implements org.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description NewtonSafe()protectedNewtonSafe(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(NewtonSafe obj)voidsetLowerBound(double lowerBound)voidsetMaxEvaluations(long evaluations)voidsetUpperBound(double upperBound)doublesolve(UnaryFunctionDelegate function, UnaryFunctionDelegate derivative, double xAccuracy, double guess, double step)doublesolve(UnaryFunctionDelegate function, UnaryFunctionDelegate derivative, double xAccuracy, double guess, double xMin, double xMax)protected static longswigRelease(NewtonSafe obj)
-
-
-
Field Detail
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Detail
-
NewtonSafe
protected NewtonSafe(long cPtr, boolean cMemoryOwn)
-
NewtonSafe
public NewtonSafe()
-
-
Method Detail
-
getCPtr
protected static long getCPtr(NewtonSafe obj)
-
swigRelease
protected static long swigRelease(NewtonSafe obj)
-
delete
public void delete()
- Specified by:
deletein interfaceorg.quantlib.helpers.QuantLibJNIHelpers.AutoCloseable
-
setMaxEvaluations
public void setMaxEvaluations(long evaluations)
-
setLowerBound
public void setLowerBound(double lowerBound)
-
setUpperBound
public void setUpperBound(double upperBound)
-
solve
public double solve(UnaryFunctionDelegate function, UnaryFunctionDelegate derivative, double xAccuracy, double guess, double step)
-
solve
public double solve(UnaryFunctionDelegate function, UnaryFunctionDelegate derivative, double xAccuracy, double guess, double xMin, double xMax)
-
-