Class UnivariateRealSolverFactory
java.lang.Object
org.apache.commons.math.analysis.solvers.UnivariateRealSolverFactory
- Direct Known Subclasses:
UnivariateRealSolverFactoryImpl
Abstract factory class used to create
UnivariateRealSolver
instances.
Solvers implementing the following algorithms are supported:
- Bisection
- Brent's method
- Secant method
newDefaultSolver()
.
Common usage:
SolverFactory factory = UnivariateRealSolverFactory.newInstance(); // create a Brent solver to use BrentSolver solver = factory.newBrentSolver();
- Version:
- $Revision: 811685 $ $Date: 2009-09-05 19:36:48 +0200 (sam. 05 sept. 2009) $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UnivariateRealSolver
Create a newUnivariateRealSolver
.abstract UnivariateRealSolver
Create a newUnivariateRealSolver
.abstract UnivariateRealSolver
Create a newUnivariateRealSolver
.static UnivariateRealSolverFactory
Create a new factory.abstract UnivariateRealSolver
Create a newUnivariateRealSolver
.abstract UnivariateRealSolver
Create a newUnivariateRealSolver
.
-
Constructor Details
-
UnivariateRealSolverFactory
protected UnivariateRealSolverFactory()Default constructor.
-
-
Method Details
-
newInstance
Create a new factory.- Returns:
- a new factory.
-
newDefaultSolver
Create a newUnivariateRealSolver
. The actual solver returned is determined by the underlying factory.- Returns:
- the new solver.
-
newBisectionSolver
Create a newUnivariateRealSolver
. The solver is an implementation of the bisection method.- Returns:
- the new solver.
-
newBrentSolver
Create a newUnivariateRealSolver
. The solver is an implementation of the Brent method.- Returns:
- the new solver.
-
newNewtonSolver
Create a newUnivariateRealSolver
. The solver is an implementation of Newton's Method.- Returns:
- the new solver.
-
newSecantSolver
Create a newUnivariateRealSolver
. The solver is an implementation of the secant method.- Returns:
- the new solver.
-