@Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2009-09-28") public abstract class AbstractRootFinder extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractRootFinder()
Default constructor with protected access prevents creation of an
instance, except by classes in this package and sub classes.
|
Modifier and Type | Method and Description |
---|---|
double |
getAccuracy()
Gets the accuracy of the root to find.
|
FunctionInterval |
getInterval()
Gets the interval.
|
int |
getIterations()
Gets the maximum number of iterations to find a root.
|
void |
setAccuracy(double accuracy)
Sets the accuracy of the root to find.
|
void |
setInterval(FunctionInterval interval)
Sets the interval.
|
void |
setIterations(int iterations)
Sets the maximum number of iterations to find a root.
|
protected AbstractRootFinder()
public int getIterations()
public void setIterations(int iterations)
iterations
- The maximum number of iterations to find a root.IllegalArgumentException
- When the supplied iterations <= 0.public double getAccuracy()
public void setAccuracy(double accuracy)
accuracy
- The accuracy of the root to find.IllegalArgumentException
- When the supplied accuracy <= 0.public FunctionInterval getInterval()
public void setInterval(FunctionInterval interval)
interval
- The intervalNullPointerException
- When the supplied interval is null.Copyright © 2008–2018. All rights reserved.