|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.analysis.solvers.BaseAbstractUnivariateSolver<UnivariateFunction>
org.apache.commons.math3.analysis.solvers.AbstractUnivariateSolver
org.apache.commons.math3.analysis.solvers.MullerSolver2
public class MullerSolver2
This class implements the Muller's Method for root finding of real univariate functions. For reference, see Elementary Numerical Analysis, ISBN 0070124477, chapter 3.
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.
Because the interval may not be bracketing, bisection alternative is not applicable here. However in practice our treatment usually works well, especially near real zeroes where the imaginary part of complex approximation is often negligible.
The formulas here do not use divided differences directly.
MullerSolver
Field Summary | |
---|---|
private static double |
DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
Constructor Summary | |
---|---|
MullerSolver2()
Construct a solver with default accuracy (1e-6). |
|
MullerSolver2(double absoluteAccuracy)
Construct a solver. |
|
MullerSolver2(double relativeAccuracy,
double absoluteAccuracy)
Construct a solver. |
Method Summary | |
---|---|
protected double |
doSolve()
Method for implementing actual optimization algorithms in derived classes. |
Methods inherited from class org.apache.commons.math3.analysis.solvers.BaseAbstractUnivariateSolver |
---|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, incrementEvaluationCount, isBracketing, isSequence, setup, solve, solve, solve, verifyBracketing, verifyInterval, verifySequence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math3.analysis.solvers.BaseUnivariateSolver |
---|
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve, solve |
Field Detail |
---|
private static final double DEFAULT_ABSOLUTE_ACCURACY
Constructor Detail |
---|
public MullerSolver2()
public MullerSolver2(double absoluteAccuracy)
absoluteAccuracy
- Absolute accuracy.public MullerSolver2(double relativeAccuracy, double absoluteAccuracy)
relativeAccuracy
- Relative accuracy.absoluteAccuracy
- Absolute accuracy.Method Detail |
---|
protected double doSolve()
doSolve
in class BaseAbstractUnivariateSolver<UnivariateFunction>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |