nl.tudelft.simulation.jstats.ode.integrators
Class Milne
java.lang.Object
nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.CachingNumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.Milne
- All Implemented Interfaces:
- Serializable
public class Milne
- extends CachingNumericalIntegrator
The Milne numerical estimator as described in
http://mathworld.wolfram.com/MilnesMethod.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:43 $
- 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 |
Milne
public Milne(double timeStep,
DifferentialEquationInterface equation)
- constructs a new Milne integrator
- Parameters:
timeStep
- the timeStep to use in the estimation.equation
- the equation to use.
Milne
public Milne(double timeStep,
DifferentialEquationInterface equation,
short integrationMethod,
int startingSubSteps)
- constructs a new Milne 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:
CachingNumericalIntegrator.next(double)
Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.