|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.math.num.root.Bracket
public class Bracket
Simple root bracketing routine. Starting with an initial point, a closed interval can be created known to contain at least one root for a function.
| Constructor Summary | |
|---|---|
Bracket(Function f)
Create a root bracketer for the given function. |
|
Bracket(Function f,
int iterations)
Create a root bracketer for the given function. |
|
| Method Summary | |
|---|---|
double[] |
bracketOut(double lower,
double initial,
double upper)
Bracket a root for the target function by creating and continuously expanding an interval around the initial point until the interval is known to contain at least one root. |
Function |
getFunction()
Access the target function. |
int |
getMaximumIterations()
Access the maximum number of iterations. |
void |
setFunction(Function f)
Modify the target function. |
void |
setMaximumIterations(int iterations)
Modify the maximum number of iterations. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bracket(Function f)
f - the target function.
public Bracket(Function f,
int iterations)
f - the target function.iterations - maximum number of iterations.| Method Detail |
|---|
public double[] bracketOut(double lower,
double initial,
double upper)
throws NumericException
lower - the lowest possible lower bound for the bracketting
interval. The lower bound for the returned interval will never be
smaller than lower.initial - the start point used to create the bracketting interval.upper - the largest possible upper bound for the bracketting
interval. The upper bound for the returned interval will never be
larger than upper.
NumericException - if a root could not be bracketed.public Function getFunction()
public int getMaximumIterations()
public void setFunction(Function f)
f - the new target function.public void setMaximumIterations(int iterations)
iterations - the new maximum number of iterations.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||