Class UnivariateRealSolverFactory
- java.lang.Object
-
- org.apache.commons.math.analysis.solvers.UnivariateRealSolverFactory
-
- Direct Known Subclasses:
UnivariateRealSolverFactoryImpl
public abstract class UnivariateRealSolverFactory extends java.lang.ObjectAbstract factory class used to createUnivariateRealSolverinstances.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 Modifier Constructor Description protectedUnivariateRealSolverFactory()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract UnivariateRealSolvernewBisectionSolver()Create a newUnivariateRealSolver.abstract UnivariateRealSolvernewBrentSolver()Create a newUnivariateRealSolver.abstract UnivariateRealSolvernewDefaultSolver()Create a newUnivariateRealSolver.static UnivariateRealSolverFactorynewInstance()Create a new factory.abstract UnivariateRealSolvernewNewtonSolver()Create a newUnivariateRealSolver.abstract UnivariateRealSolvernewSecantSolver()Create a newUnivariateRealSolver.
-
-
-
Method Detail
-
newInstance
public static UnivariateRealSolverFactory newInstance()
Create a new factory.- Returns:
- a new factory.
-
newDefaultSolver
public abstract UnivariateRealSolver newDefaultSolver()
Create a newUnivariateRealSolver. The actual solver returned is determined by the underlying factory.- Returns:
- the new solver.
-
newBisectionSolver
public abstract UnivariateRealSolver newBisectionSolver()
Create a newUnivariateRealSolver. The solver is an implementation of the bisection method.- Returns:
- the new solver.
-
newBrentSolver
public abstract UnivariateRealSolver newBrentSolver()
Create a newUnivariateRealSolver. The solver is an implementation of the Brent method.- Returns:
- the new solver.
-
newNewtonSolver
public abstract UnivariateRealSolver newNewtonSolver()
Create a newUnivariateRealSolver. The solver is an implementation of Newton's Method.- Returns:
- the new solver.
-
newSecantSolver
public abstract UnivariateRealSolver newSecantSolver()
Create a newUnivariateRealSolver. The solver is an implementation of the secant method.- Returns:
- the new solver.
-
-