|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator
nl.tudelft.simulation.jstats.ode.integrators.CachingNumericalIntegrator
The CachingNumericalIntegrator is the basis for an integrator that needs
access to previously calculated values of y', e.g. y'_(k-1), y'_(k-2), etc.
(c) copyright 2003-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Field Summary | |
protected NumericalIntegrator |
startingIntegrator
the primer integrator |
protected int |
startingSubSteps
the substeps to use when starting the integrator |
| 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 |
| Constructor Summary | |
CachingNumericalIntegrator(double timeStep,
DifferentialEquationInterface equation,
int cachePlaces,
short integrationMethod,
int startingSubSteps)
constructs a new CachingNumericalIntegrator with a fixed number of cache places. |
|
| Method Summary | |
double[] |
getDY(int numberDown)
get a cached dY-value, |
double[] |
getY(int numberDown)
get a cached Y-value, |
abstract double[] |
next(double x)
The integrators that extend the CachingNumericalIntegrator calculate the value of y(x+timeStep) just based on the x-value. |
double[] |
next(double x,
double[] y)
computes the next value |
void |
setTimeStep(double timeStep)
|
| Methods inherited from class nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator |
add, add, add, add, add, getError, getTimeStep, multiply, resolve |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected NumericalIntegrator startingIntegrator
protected int startingSubSteps
| Constructor Detail |
public CachingNumericalIntegrator(double timeStep,
DifferentialEquationInterface equation,
int cachePlaces,
short integrationMethod,
int startingSubSteps)
timeStep - the timeStepequation - the differentialEquationcachePlaces - the number of cache places to storeintegrationMethod - the primer integrator to usestartingSubSteps - the number of substeps per timestep during
starting of the integrator| Method Detail |
public void setTimeStep(double timeStep)
setTimeStep in class NumericalIntegratortimeStep - The timeStep to set.NumericalIntegrator.setTimeStep(double)
public double[] next(double x,
double[] y)
NumericalIntegrator
next in class NumericalIntegratorx - the x value corresponding to the last y-value computedy - the last y value
NumericalIntegrator.next(double,
double[])public double[] getY(int numberDown)
numberDown - the number of the previous value we want
public double[] getDY(int numberDown)
numberDown - the number of the previous value we want
public abstract double[] next(double x)
x - the x-value to use in the calculation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||