|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.nengo.dynamics.impl.RK45Integrator
public class RK45Integrator
A variable-timestep Integrator, which uses the Dormand-Prince 4th and 5th-order Runge-Kutta formulae.
This code is adapted from a GPL Octave implementation by Marc Compere (see http://users.powernet.co.uk/kienzle/octave/matcompat/scripts/ode_v1.11/ode45.m)
See also Dormand & Prince, 1980, J Computational and Applied Mathematics 6(1), 19-26.
TODO: should re-use initial time step estimate from last integration if available
| Constructor Summary | |
|---|---|
RK45Integrator()
Uses default error tolerance of 1e-6 |
|
RK45Integrator(float tolerance)
|
|
| Method Summary | |
|---|---|
Integrator |
clone()
|
float |
getTolerance()
|
TimeSeries |
integrate(DynamicalSystem system,
TimeSeries input)
Integrates the given system over the time span defined by the input time series. |
void |
setTolerance(float tolerance)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RK45Integrator(float tolerance)
tolerance - Error tolerancepublic RK45Integrator()
| Method Detail |
|---|
public float getTolerance()
public void setTolerance(float tolerance)
tolerance - Error tolerance
public TimeSeries integrate(DynamicalSystem system,
TimeSeries input)
Integrator
integrate in interface Integratorsystem - The DynamicalSystem to solve.input - Input vector to the system, defined at the desired start and end times
of integration, and optionally at times in between. The way in which the
integrator interpolates between inputs at different times is decided by the
Integrator implementation.
Integrator.integrate(ca.nengo.dynamics.DynamicalSystem, ca.nengo.util.TimeSeries)
public Integrator clone()
throws java.lang.CloneNotSupportedException
clone in interface Integratorclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||