public class RidderSingleRootFinder extends RealSingleRootFinder
| Constructor and Description |
|---|
RidderSingleRootFinder()
Sets the accuracy to 10-15.
|
RidderSingleRootFinder(double functionValueAccuracy) |
RidderSingleRootFinder(double functionValueAccuracy,
double absoluteAccurary) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getRoot(Function<Double,Double> function,
Double xLow,
Double xHigh) |
checkInputs, checkInputs, getRootpublic RidderSingleRootFinder()
public RidderSingleRootFinder(double functionValueAccuracy)
functionValueAccuracy - The accuracy of the function evaluations.public RidderSingleRootFinder(double functionValueAccuracy,
double absoluteAccurary)
functionValueAccuracy - The accuracy of the function evaluations.absoluteAccurary - The maximum absolute error of the variable.public Double getRoot(Function<Double,Double> function, Double xLow, Double xHigh)
getRoot in class RealSingleRootFinderMathException - If the Commons method could not evaluate the function;
if the Commons method could not converge.Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.