org.apache.commons.math.analysis
Class UnivariateRealSolverFactory

java.lang.Object
  extended byorg.apache.commons.math.analysis.UnivariateRealSolverFactory
Direct Known Subclasses:
UnivariateRealSolverFactoryImpl

public abstract class UnivariateRealSolverFactory
extends Object

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).

Version:
$Revision: 1.10 $ $Date: 2003/11/14 22:22:17 $

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 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

UnivariateRealSolverFactory

protected UnivariateRealSolverFactory()
Default constructor.

Method Detail

newInstance

public static UnivariateRealSolverFactory newInstance()
Create a new factory.

Returns:
a new factory.

newDefaultSolver

public abstract UnivariateRealSolver newDefaultSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. The actual solver returned is determined by the underlying factory.

Parameters:
f - the function.
Returns:
the new solver.

newBisectionSolver

public abstract UnivariateRealSolver newBisectionSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. The solver is an implementation of the bisection method.

Parameters:
f - the function.
Returns:
the new solver.

newBrentSolver

public abstract UnivariateRealSolver newBrentSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. The solver is an implementation of the Brent method.

Parameters:
f - the function.
Returns:
the new solver.

newSecantSolver

public abstract UnivariateRealSolver newSecantSolver(UnivariateRealFunction f)
Create a new UnivariateRealSolver for the given function. The solver is an implementation of the secant method.

Parameters:
f - the function.
Returns:
the new solver.


Copyright © 2003-2004 Apache Software Foundation. All Rights Reserved.