|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.UnivariateRealSolverFactory
org.apache.commons.math.analysis.UnivariateRealSolverFactoryImpl
A factory to easily get a default solver and some convenience functions. Because solvers are easily reusable, the factory does not store configuration data and creates preconfigured solvers (this may be controversial, because the configuration data may also be used for the default solver used by the static solve() method).
Constructor Summary | |
UnivariateRealSolverFactoryImpl()
Default constructor. |
Method Summary | |
UnivariateRealSolver |
newBisectionSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
UnivariateRealSolver |
newBrentSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
UnivariateRealSolver |
newDefaultSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
UnivariateRealSolver |
newSecantSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
Methods inherited from class org.apache.commons.math.analysis.UnivariateRealSolverFactory |
newInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnivariateRealSolverFactoryImpl()
Method Detail |
public UnivariateRealSolver newDefaultSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
actual solver returned is determined by the underlying factory.
This factory returns a BrentSolver
instance.
newDefaultSolver
in class UnivariateRealSolverFactory
f
- the function.
public UnivariateRealSolver newBisectionSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the bisection method.
newBisectionSolver
in class UnivariateRealSolverFactory
f
- the function.
public UnivariateRealSolver newBrentSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the Brent method.
newBrentSolver
in class UnivariateRealSolverFactory
f
- the function.
public UnivariateRealSolver newSecantSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the secant method.
newSecantSolver
in class UnivariateRealSolverFactory
f
- the function.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |