public class RiddersMethod extends Object implements RootFinder
| Constructor and Description |
|---|
RiddersMethod(double leftPoint,
double rightPoint) |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccuracy() |
double |
getBestPoint() |
double |
getNextPoint() |
int |
getNumberOfIterations() |
boolean |
isDone() |
static void |
main(String[] args) |
void |
setValue(double value) |
public RiddersMethod(double leftPoint,
double rightPoint)
leftPoint - left point of search intervalrightPoint - right point of search intervalpublic static void main(String[] args)
public double getBestPoint()
getBestPoint in interface RootFinderpublic double getNextPoint()
getNextPoint in interface RootFindersetValue.public void setValue(double value)
setValue in interface RootFindervalue - Value corresponding to point returned by previous getNextPoint call.public int getNumberOfIterations()
getNumberOfIterations in interface RootFinderpublic double getAccuracy()
getAccuracy in interface RootFinderpublic boolean isDone()
isDone in interface RootFinderCopyright © 2015. All rights reserved.