|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.UnivariateRealSolverFactory
Abstract factory class used to create UnivariateRealSolver
instances.
Solvers implementing the following algorithms are supported:
newDefaultSolver()
.
Common usage:
SolverFactory factory = UnivariateRealSolverFactory.newInstance(); // create a Brent solver to use with a UnivariateRealFunction f BrentSolver solver = factory.newBrentSolver(f);Jakarta Commons Discovery is used to determine the concrete factory returned by
UnivariateRealSolverFactory.newInstance().
The default is
UnivariateRealSolverFactoryImpl
.
Constructor Summary | |
protected |
UnivariateRealSolverFactory()
Default constructor. |
Method Summary | |
abstract UnivariateRealSolver |
newBisectionSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
abstract UnivariateRealSolver |
newBrentSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
abstract UnivariateRealSolver |
newDefaultSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
static UnivariateRealSolverFactory |
newInstance()
Create a new factory. |
abstract UnivariateRealSolver |
newNewtonSolver(DifferentiableUnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
abstract UnivariateRealSolver |
newSecantSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected UnivariateRealSolverFactory()
Method Detail |
public static UnivariateRealSolverFactory newInstance()
public abstract UnivariateRealSolver newDefaultSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
actual solver returned is determined by the underlying factory.
f
- the function.
public abstract UnivariateRealSolver newBisectionSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the bisection method.
f
- the function.
public abstract UnivariateRealSolver newBrentSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the Brent method.
f
- the function.
public abstract UnivariateRealSolver newNewtonSolver(DifferentiableUnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of Newton's Method.
f
- the function.
public abstract UnivariateRealSolver newSecantSolver(UnivariateRealFunction f)
UnivariateRealSolver
for the given function. The
solver is an implementation of the secant method.
f
- the function.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |