Muller's method applies to both real and complex functions, but here we
restrict ourselves to real functions.
This class differs from MullerSolver in the way it avoids complex
operations.
Except for the initial [min, max], it does not require bracketing condition, e.g. f(x0), f(x1), f(x2) can have the same sign. If a complex number arises in the computation, we simply use its modulus as a real approximation.
Because the interval may not be bracketing, the bisection alternative is not applicable here. However in practice our treatment usually works well, especially near real zeroes where the imaginary part of the complex approximation is often negligible.
The formulas here do not use divided differences directly.
MullerSolver
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | MullerSolver2(double
Relative accuracy. relativeAccuracy, double Absolute accuracy. absoluteAccuracy)Construct a solver. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | doSolve()
Implements abstract org. Method for implementing actual optimization algorithms in derived classes. |
| DEFAULT_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| private static final double DEFAULT_ABSOLUTE_ACCURACY Default absolute accuracy. | |
| MullerSolver2 | back to summary |
|---|---|
| public MullerSolver2() Construct a solver with default accuracy (1e-6). | |
| MullerSolver2 | back to summary |
|---|---|
| public MullerSolver2(double absoluteAccuracy) Construct a solver.
| |
| MullerSolver2 | back to summary |
|---|---|
| public MullerSolver2(double relativeAccuracy, double absoluteAccuracy) Construct a solver.
| |
| doSolve | back to summary |
|---|---|
| protected double doSolve() throws TooManyEvaluationsException, NumberIsTooLargeException, NoBracketingException Implements abstract org. Doc from org. Method for implementing actual optimization algorithms in derived classes.
| |