类 NewtonRaphson.Builder
java.lang.Object
cn.nkpro.elcube.utils.xirr.NewtonRaphson.Builder
- 封闭类:
- NewtonRaphson
Builder for
NewtonRaphson instances.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()doublefindRoot(double guess)Convenience method which builds the NewtonRaphson instance and invokesNewtonRaphson.findRoot(double).withDerivative(DoubleUnaryOperator derivative)withFunction(DoubleUnaryOperator func)withIterations(long iterations)withTolerance(double tolerance)
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
withFunction
-
withDerivative
-
withTolerance
-
withIterations
-
build
-
findRoot
public double findRoot(double guess)Convenience method which builds the NewtonRaphson instance and invokesNewtonRaphson.findRoot(double).- 参数:
guess- seeNewtonRaphson.findRoot(double)- 返回:
- see
NewtonRaphson.findRoot(double)
-