FieldBracketingNthOrderBrentSolver
@Deprecated public class BracketingNthOrderBrentSolverDFP extends FieldBracketingNthOrderBrentSolver<Dfp>
The changes with respect to the original Brent algorithm are:
AllowedSolution
,Constructor and Description |
---|
BracketingNthOrderBrentSolverDFP(Dfp relativeAccuracy,
Dfp absoluteAccuracy,
Dfp functionValueAccuracy,
int maximalOrder)
Deprecated.
Construct a solver.
|
Modifier and Type | Method and Description |
---|---|
Dfp |
getAbsoluteAccuracy()
Deprecated.
Get the absolute accuracy.
|
Dfp |
getFunctionValueAccuracy()
Deprecated.
Get the function accuracy.
|
Dfp |
getRelativeAccuracy()
Deprecated.
Get the relative accuracy.
|
Dfp |
solve(int maxEval,
UnivariateDfpFunction f,
Dfp min,
Dfp max,
AllowedSolution allowedSolution)
Deprecated.
Solve for a zero in the given interval.
|
Dfp |
solve(int maxEval,
UnivariateDfpFunction f,
Dfp min,
Dfp max,
Dfp startValue,
AllowedSolution allowedSolution)
Deprecated.
Solve for a zero in the given interval, start at
startValue . |
getEvaluations, getMaxEvaluations, getMaximalOrder, solve, solve
public BracketingNthOrderBrentSolverDFP(Dfp relativeAccuracy, Dfp absoluteAccuracy, Dfp functionValueAccuracy, int maximalOrder) throws NumberIsTooSmallException
relativeAccuracy
- Relative accuracy.absoluteAccuracy
- Absolute accuracy.functionValueAccuracy
- Function value accuracy.maximalOrder
- maximal order.NumberIsTooSmallException
- if maximal order is lower than 2public Dfp getAbsoluteAccuracy()
getAbsoluteAccuracy
in interface BracketedRealFieldUnivariateSolver<Dfp>
getAbsoluteAccuracy
in class FieldBracketingNthOrderBrentSolver<Dfp>
public Dfp getRelativeAccuracy()
getRelativeAccuracy
in interface BracketedRealFieldUnivariateSolver<Dfp>
getRelativeAccuracy
in class FieldBracketingNthOrderBrentSolver<Dfp>
public Dfp getFunctionValueAccuracy()
getFunctionValueAccuracy
in interface BracketedRealFieldUnivariateSolver<Dfp>
getFunctionValueAccuracy
in class FieldBracketingNthOrderBrentSolver<Dfp>
public Dfp solve(int maxEval, UnivariateDfpFunction f, Dfp min, Dfp max, AllowedSolution allowedSolution) throws NullArgumentException, NoBracketingException
maxEval
- Maximum number of evaluations.f
- Function to solve.min
- Lower bound for the interval.max
- Upper bound for the interval.allowedSolution
- The kind of solutions that the root-finding algorithm may
accept as solutions.NullArgumentException
- if f is null.NoBracketingException
- if root cannot be bracketedpublic Dfp solve(int maxEval, UnivariateDfpFunction f, Dfp min, Dfp max, Dfp startValue, AllowedSolution allowedSolution) throws NullArgumentException, NoBracketingException
startValue
.
A solver may require that the interval brackets a single zero root.
Solvers that do require bracketing should be able to handle the case
where one of the endpoints is itself a root.maxEval
- Maximum number of evaluations.f
- Function to solve.min
- Lower bound for the interval.max
- Upper bound for the interval.startValue
- Start value to use.allowedSolution
- The kind of solutions that the root-finding algorithm may
accept as solutions.NullArgumentException
- if f is null.NoBracketingException
- if root cannot be bracketedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.