nl.tudelft.simulation.jstats.ode.integrators
Class Adams
java.lang.Object
nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.CachingNumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.Adams
- All Implemented Interfaces:
- Serializable
public class Adams
- extends CachingNumericalIntegrator
The Adams-Bashforth-Moulton numerical estimator as described in
http://mathworld.wolfram.com/AdamsMethod.html
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Since:
- 1.4
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:25:42 $
- Author:
- Peter
Jacobs
- See Also:
- Serialized Form
Fields inherited from class nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator |
ADAMS, DEFAULT_INTEGRATOR, equation, error, EULER, GILL, HEUN, MILNE, RUNGEKUTTA3, RUNGEKUTTA4, RUNGEKUTTACASHCARP, RUNGEKUTTAFEHLBERG, timeStep |
Method Summary |
double[] |
next(double x)
The integrators that extend the CachingNumericalIntegrator calculate the
value of y(x+timeStep) just based on the x-value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Adams
public Adams(double timeStep,
DifferentialEquationInterface equation)
- constructs a new Adams integrator
- Parameters:
timeStep
- the timeStep to use in the estimation.equation
- the equation to use.
Adams
public Adams(double timeStep,
DifferentialEquationInterface equation,
short integrationMethod,
int startingSubSteps)
- constructs a new Adams integrator, indicating the starting method and
number of substeps
- Parameters:
timeStep
- the timeStep to use in the estimation.equation
- the equation to use.integrationMethod
- the primer integrator to usestartingSubSteps
- the number of substeps per timestep during
starting of the integrator
next
public double[] next(double x)
- Description copied from class:
CachingNumericalIntegrator
- The integrators that extend the CachingNumericalIntegrator calculate the
value of y(x+timeStep) just based on the x-value. They retrieve y(x),
y(x-timeStep), etc. or y(k), y(k-1) all from the cache.
- Specified by:
next
in class CachingNumericalIntegrator
- Parameters:
x
- the x-value to use in the calculation
- Returns:
- the value of y(x+timeStep)
- See Also:
#next(double)
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.