|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.UnivariateRealSolverUtils
Utility routines for UnivariateRealSolver
objects.
Method Summary | |
static double[] |
bracket(UnivariateRealFunction function,
double initial,
double lowerBound,
double upperBound)
For a function, f, this method returns two values, a and b that bracket a root of f. |
static double[] |
bracket(UnivariateRealFunction function,
double initial,
double lowerBound,
double upperBound,
int maximumIterations)
For a function, f, this method returns two values, a and b that bracket a root of f. |
static double |
solve(UnivariateRealFunction f,
double x0,
double x1)
Method to solve for zeros of real univariate functions. |
static double |
solve(UnivariateRealFunction f,
double x0,
double x1,
double absoluteAccuracy)
Convience method to solve for zeros of real univariate functions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static double solve(UnivariateRealFunction f, double x0, double x1) throws MathException
f
- the function.x0
- the lower bound for the interval.x1
- the upper bound for the interval.
MathException
- if the iteration count was exceeded or the
solver detects convergence problems otherwise.public static double solve(UnivariateRealFunction f, double x0, double x1, double absoluteAccuracy) throws MathException
f
- the function.x0
- the lower bound for the interval.x1
- the upper bound for the interval.absoluteAccuracy
- the accuracy to be used by the solver.
MathException
- if the iteration count was exceeded or the
solver detects convergence problems otherwise.public static double[] bracket(UnivariateRealFunction function, double initial, double lowerBound, double upperBound) throws MathException
function
- the functioninitial
- midpoint of the returned range.lowerBound
- for numerical safety, a never is less than this value.upperBound
- for numerical safety, b never is greater than this
value.
MathException
- if a root can not be bracketted.public static double[] bracket(UnivariateRealFunction function, double initial, double lowerBound, double upperBound, int maximumIterations) throws MathException
function
- the functioninitial
- midpoint of the returned range.lowerBound
- for numerical safety, a never is less than this value.upperBound
- for numerical safety, b never is greater than this
value.maximumIterations
- to guard against infinite looping, maximum
number of iterations to perform
MathException
- if a root can not be bracketted.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |