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 RootFinder
public double getNextPoint()
getNextPoint
in interface RootFinder
setValue
.public void setValue(double value)
setValue
in interface RootFinder
value
- Value corresponding to point returned by previous getNextPoint
call.public int getNumberOfIterations()
getNumberOfIterations
in interface RootFinder
public double getAccuracy()
getAccuracy
in interface RootFinder
public boolean isDone()
isDone
in interface RootFinder
Copyright © 2017. All rights reserved.