public class BisectionSolver extends UnivariateRealSolverImpl
The function should be continuous but not necessarily smooth.
| Constructor and Description |
|---|
BisectionSolver()
Construct a solver.
|
BisectionSolver(UnivariateRealFunction f)
Deprecated.
as of 2.0 the function to solve is passed as an argument
to the
solve(UnivariateRealFunction, double, double) or
UnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method. |
| Modifier and Type | Method and Description |
|---|---|
double |
solve(double min,
double max)
Deprecated.
|
double |
solve(double min,
double max,
double initial)
Deprecated.
|
double |
solve(int maxEval,
UnivariateRealFunction f,
double min,
double max)
Solve for a zero root in the given interval.
|
double |
solve(int maxEval,
UnivariateRealFunction f,
double min,
double max,
double initial)
Solve for a zero in the given interval, start at startValue.
|
double |
solve(UnivariateRealFunction f,
double min,
double max)
Deprecated.
in 2.2 (to be removed in 3.0).
|
double |
solve(UnivariateRealFunction f,
double min,
double max,
double initial)
Deprecated.
in 2.2 (to be removed in 3.0).
|
getFunctionValue, getFunctionValueAccuracy, getResult, resetFunctionValueAccuracy, setFunctionValueAccuracygetAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy@Deprecated public BisectionSolver(UnivariateRealFunction f)
solve(UnivariateRealFunction, double, double) or
UnivariateRealSolver.solve(UnivariateRealFunction, double, double, double)
method.f - function to solve.public BisectionSolver()
@Deprecated
public double solve(double min,
double max,
double initial)
throws MaxIterationsExceededException,
FunctionEvaluationException
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.
min - the lower bound for the interval.max - the upper bound for the interval.initial - the start value to useFunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededException@Deprecated
public double solve(double min,
double max)
throws MaxIterationsExceededException,
FunctionEvaluationException
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.
min - the lower bound for the interval.max - the upper bound for the interval.FunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededException@Deprecated public double solve(UnivariateRealFunction f, double min, double max, double initial) throws MaxIterationsExceededException, FunctionEvaluationException
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.
f - the function to solve.min - the lower bound for the interval.max - the upper bound for the interval.initial - the start value to useFunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededExceptionpublic double solve(int maxEval,
UnivariateRealFunction f,
double min,
double max,
double initial)
throws MaxIterationsExceededException,
FunctionEvaluationException
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.
solve in class UnivariateRealSolverImplmaxEval - Maximum number of evaluations.f - the function to solve.min - the lower bound for the interval.max - the upper bound for the interval.initial - the start value to useFunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededExceptionpublic double solve(int maxEval,
UnivariateRealFunction f,
double min,
double max)
throws MaxIterationsExceededException,
FunctionEvaluationException
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.
solve in class UnivariateRealSolverImplmaxEval - Maximum number of evaluations.f - the function to solve.min - the lower bound for the interval.max - the upper bound for the interval.FunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededException@Deprecated public double solve(UnivariateRealFunction f, double min, double max) throws MaxIterationsExceededException, FunctionEvaluationException
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.
f - the function to solve.min - the lower bound for the interval.max - the upper bound for the interval.FunctionEvaluationException - if an error occurs evaluating the functionMaxIterationsExceededExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved