Top Description Constructors Methods
org.apache.commons.math3.dfp

public Class BracketingNthOrderBrentSolverDFP

extends FieldBracketingNthOrderBrentSolver<Dfp>
Class Inheritance
Annotations
@Deprecated
Imports
org.apache.commons.math3.analysis.RealFieldUnivariateFunction, org.apache.commons.math3.analysis.solvers.AllowedSolution, .FieldBracketingNthOrderBrentSolver, org.apache.commons.math3.exception.NoBracketingException, .NullArgumentException, .NumberIsTooSmallException, org.apache.commons.math3.util.MathUtils

Deprecated

as of 3.6 replaced with FieldBracketingNthOrderBrentSolver

This class implements a modification of the Brent algorithm.

The changes with respect to the original Brent algorithm are:

The given interval must bracket the root.

Constructor Summary

AccessConstructor and Description
public
BracketingNthOrderBrentSolverDFP(final Dfp
Relative accuracy.
relativeAccuracy
,
final Dfp
Absolute accuracy.
absoluteAccuracy
,
final Dfp
Function value accuracy.
functionValueAccuracy
,
final int
maximal order.
maximalOrder
)

Construct a solver.

Method Summary

Modifier and TypeMethod and Description
public Dfp
public Dfp
public Dfp
public Dfp

Returns:

a value where the function is zero.
solve
(final int
Maximum number of evaluations.
maxEval
,
final UnivariateDfpFunction
Function to solve.
f
,
final Dfp
Lower bound for the interval.
min
,
final Dfp
Upper bound for the interval.
max
,
final AllowedSolution
The kind of solutions that the root-finding algorithm may accept as solutions.
allowedSolution
)
Deprecated as a consequence of UnivariateDfpFunction being deprecated.

Solve for a zero in the given interval.

public Dfp

Returns:

a value where the function is zero.
solve
(final int
Maximum number of evaluations.
maxEval
,
final UnivariateDfpFunction
Function to solve.
f
,
final Dfp
Lower bound for the interval.
min
,
final Dfp
Upper bound for the interval.
max
,
final Dfp
Start value to use.
startValue
,
final AllowedSolution
The kind of solutions that the root-finding algorithm may accept as solutions.
allowedSolution
)
Deprecated as a consequence of UnivariateDfpFunction being deprecated.

Solve for a zero in the given interval, start at startValue.

Inherited from org.apache.commons.math3.analysis.solvers.FieldBracketingNthOrderBrentSolver:
getEvaluationsgetMaxEvaluationsgetMaximalOrdersolvesolve

Constructor Detail

BracketingNthOrderBrentSolverDFPback to summary
public BracketingNthOrderBrentSolverDFP(final Dfp relativeAccuracy, final Dfp absoluteAccuracy, final Dfp functionValueAccuracy, final int maximalOrder) throws NumberIsTooSmallException

Construct a solver.

Parameters
relativeAccuracy:Dfp

Relative accuracy.

absoluteAccuracy:Dfp

Absolute accuracy.

functionValueAccuracy:Dfp

Function value accuracy.

maximalOrder:int

maximal order.

Exceptions
NumberIsTooSmallException:
if maximal order is lower than 2

Method Detail

getAbsoluteAccuracyback to summary
public Dfp getAbsoluteAccuracy()

Overrides org.apache.commons.math3.analysis.solvers.FieldBracketingNthOrderBrentSolver.getAbsoluteAccuracy.

Implements org.apache.commons.math3.analysis.solvers.BracketedRealFieldUnivariateSolver.getAbsoluteAccuracy.

Get the absolute accuracy.

Returns:Dfp

absolute accuracy

Annotations
@Override
getFunctionValueAccuracyback to summary
public Dfp getFunctionValueAccuracy()

Overrides org.apache.commons.math3.analysis.solvers.FieldBracketingNthOrderBrentSolver.getFunctionValueAccuracy.

Implements org.apache.commons.math3.analysis.solvers.BracketedRealFieldUnivariateSolver.getFunctionValueAccuracy.

Get the function accuracy.

Returns:Dfp

function accuracy

Annotations
@Override
getRelativeAccuracyback to summary
public Dfp getRelativeAccuracy()

Overrides org.apache.commons.math3.analysis.solvers.FieldBracketingNthOrderBrentSolver.getRelativeAccuracy.

Implements org.apache.commons.math3.analysis.solvers.BracketedRealFieldUnivariateSolver.getRelativeAccuracy.

Get the relative accuracy.

Returns:Dfp

relative accuracy

Annotations
@Override
solveback to summary
public Dfp solve(final int maxEval, final UnivariateDfpFunction f, final Dfp min, final Dfp max, final AllowedSolution allowedSolution) throws NullArgumentException, NoBracketingException

Deprecated

as a consequence of UnivariateDfpFunction being deprecated. See corresponding docs for further information.

Solve for a zero in the given interval. 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.

Parameters
maxEval:int

Maximum number of evaluations.

f:UnivariateDfpFunction

Function to solve.

min:Dfp

Lower bound for the interval.

max:Dfp

Upper bound for the interval.

allowedSolution:AllowedSolution

The kind of solutions that the root-finding algorithm may accept as solutions.

Returns:Dfp

a value where the function is zero.

Exceptions
NullArgumentException:
if f is null.
NoBracketingException:
if root cannot be bracketed
solveback to summary
public Dfp solve(final int maxEval, final UnivariateDfpFunction f, final Dfp min, final Dfp max, final Dfp startValue, final AllowedSolution allowedSolution) throws NullArgumentException, NoBracketingException

Deprecated

as a consequence of UnivariateDfpFunction being deprecated. See corresponding docs for further information.

Solve for a zero in the given interval, start at 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.

Parameters
maxEval:int

Maximum number of evaluations.

f:UnivariateDfpFunction

Function to solve.

min:Dfp

Lower bound for the interval.

max:Dfp

Upper bound for the interval.

startValue:Dfp

Start value to use.

allowedSolution:AllowedSolution

The kind of solutions that the root-finding algorithm may accept as solutions.

Returns:Dfp

a value where the function is zero.

Exceptions
NullArgumentException:
if f is null.
NoBracketingException:
if root cannot be bracketed