Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MODEL::Integrator Class Template Reference

#include <integrator.h>

Inheritance diagram for MODEL::Integrator:

Inheritance graph
List of all members.

Public Types

typedef NT::number numT
typedef NT::vect vect
typedef NT::vf vf
typedef NT::matrix matrix

Public Methods

 Integrator (vf &d, vf &s)
virtual ~Integrator ()
virtual vect& step (vect &current, time &dt)=0
vect& currentpoint (void)

Protected Attributes

vf* deter
vf* stoch

Private Methods

vf* get_deterministic (void)
vf* get_stochastic (void)


class  ODESystem< dims, nelem, NT >

Detailed Description

template<integer dims, typename nelem = number, class NT = NumericTraits<nelem,dims>> class MODEL::Integrator

Integrator: take a step dt from here to the next point

Definition at line 39 of file integrator.h.

Constructor & Destructor Documentation

Integrator ( vf & d,
vf & s ) [inline]

Set the integrator and tell it what to do. At the moment any special cases with for example correlated noise should be taken care of when we derive. I agree that storing a pointer to the function objects inside the base class might not be very kosher, but that's the way it is for now. Cleanup is NOT a priority.

d   is the deterministic vectorfunction.
s   is the multiplicative stochastic vectorfunction.

Definition at line 58 of file integrator.h.

Member Function Documentation

vect & currentpoint ( void ) [inline]

Return current point

Definition at line 73 of file integrator.h.

vf * get_deterministic ( void ) [inline, private]

Get functions - not clean, but necessary

Definition at line 77 of file integrator.h.

vect & step ( vect & current,
time & dt ) [pure virtual]

Implement this one to take a step. takes the current point and modifies it. Returns a ref to the modified point

dt   is the step to take. This makes it possible to generate a adaptive stepsize if needed.

I wonder if the fact that an Integrator has a dt makes it a candidate for TickTock status?

Reimplemented in MODEL::IEuler, MODEL::IRungeKutta, MODEL::IMilshtein, and MODEL::IHeunSimpleCorr.

Member Data Documentation

vf * deter [protected]

Storage for the functions

Definition at line 89 of file integrator.h.

vf * stoch [protected]

Storage for the functions

Definition at line 91 of file integrator.h.

The documentation for this class was generated from the following file:
To get the sources or tarballs, please go to SourceForge or you can use the CVS repository.

More Info? Michael Peeters. Also, check our research website:

Last update: June 2002.

Looking for Open Source? Check out SourceForge Logo !