rvl.util
Class SolveObject
java.lang.Object
|
+--rvl.util.UniFunction
|
+--rvl.util.SolveObject
- public class SolveObject
- extends UniFunction
This class allows one to set up a hook in any
object to reference in Solve.illinois() or
Solve.search(). Variables exist that allow
a specification of the domain, whether the endpoints are
open or closed, and various convergence criteria.
Instances should define the "of" method, and modify the
bounds and other parameters as appropriate.
To use, have the class implement Solvable, set
up a suitable solveHook(m,x) method that returns
a function value at x for each desired mode m.
Define new SolveObject variables where needed;
modify the bounds and convergence parameters as appropriate.
- See Also:
Solve
Method Summary |
double |
of(double x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xMin
public double xMin
- Domain of the function
xMax
public double xMax
- Domain of the function
closedMin
public boolean closedMin
closedMax
public boolean closedMax
maxIter
public int maxIter
- Controls for solving process
maxSearch
public int maxSearch
- Controls for solving process
feps
public double feps
xeps
public double xeps
verbose
public boolean verbose
SolveObject
public SolveObject(int m,
Solvable p)
- Instantiate a SolveObject.
- Parameters:
m
- mode number passed to solveHookp
- object containing the solveHook
of
public double of(double x)
- Overrides:
of
in class UniFunction