|
||||||||||
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.RungeKuttaCashCarp
public class RungeKuttaCashCarp
The RungeKuttaCashCarp.java numerical integrator.
(c) copyright 2004 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Field Summary | |
---|---|
protected static double[] |
a
the parameters for a_i, in f(x_n + a_i h, .) |
protected static double[][] |
b
the parameters for b_ij, in f(., y_n + b_p1 k1 + bp2 k2 + ...) |
protected static double[] |
c
the parameters for c_i, in y_n+1 = y_n + c_1 k_1 + c_2 k_2 + ... |
protected static double[] |
c4
the parameters for c4_i, in y_n+1 = y_n + c4_1 k_1 + c4_2 k_2 + ... |
protected static int |
nk
the numer of k-s in the method |
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 | |
---|---|
RungeKuttaCashCarp(double timeStep,
DifferentialEquationInterface equation)
constructs a new RungeKuttaCashCarp |
Method Summary | |
---|---|
double[] |
next(double x,
double[] y)
computes the next value |
Methods inherited from class nl.tudelft.simulation.jstats.ode.integrators.NumericalIntegrator |
---|
add, add, add, add, add, getError, getTimeStep, multiply, resolve, setTimeStep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static double[] a
protected static double[][] b
protected static double[] c
protected static double[] c4
protected static int nk
Constructor Detail |
---|
public RungeKuttaCashCarp(double timeStep, DifferentialEquationInterface equation)
timeStep
- the timeStepequation
- the differentialEquationMethod Detail |
---|
public double[] next(double x, double[] y)
NumericalIntegrator
next
in class NumericalIntegrator
x
- the x value corresponding to the last y-value computedy
- the last y value
#next(double,double[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |