|
|||||||||
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.BisectionSolver
public class BisectionSolver
Implements the bisection algorithm for finding zeros of univariate real functions.
The function should be continuous but not necessarily smooth.
Field Summary | |
---|---|
private static double |
DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
Constructor Summary | |
---|---|
BisectionSolver()
Construct a solver with default accuracy (1e-6). |
|
BisectionSolver(double absoluteAccuracy)
Construct a solver. |
|
BisectionSolver(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 BisectionSolver()
public BisectionSolver(double absoluteAccuracy)
absoluteAccuracy
- Absolute accuracy.public BisectionSolver(double relativeAccuracy, double absoluteAccuracy)
relativeAccuracy
- Relative accuracy.absoluteAccuracy
- Absolute accuracy.Method Detail |
---|
protected double doSolve() throws TooManyEvaluationsException
doSolve
in class BaseAbstractUnivariateSolver<UnivariateFunction>
TooManyEvaluationsException
- if the maximal number of evaluations
is exceeded.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |