javax.robotics.ode
Class Heun

java.lang.Object
  extended by javax.robotics.ode.Euler
      extended by javax.robotics.ode.Heun
All Implemented Interfaces:
DerivableFunction, Solver

public class Heun
extends Euler

This class implements Heun integration method.

Since:
1.0.0
Version:
09/11/2005
Author:
Carmine Lia

Field Summary
 
Fields inherited from interface javax.robotics.ode.Solver
startTime
 
Constructor Summary
Heun(double dt, RVector initialCondition, DerivableFunction target)
          Defines numerical integration for x' = f(x) differential equation.
 
Method Summary
 void step(RVector x)
          Computes step integration from time t to t+dt of x' = f(x).
 
Methods inherited from class javax.robotics.ode.Euler
getInitialCondition, getLastValue, getSampleTime, getTime, setInitialCondition, setSampleTime, xDot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Heun

public Heun(double dt,
            RVector initialCondition,
            DerivableFunction target)
Defines numerical integration for x' = f(x) differential equation.

Parameters:
dt - time interval of integration [sec]
initialCondition - initial condition at time zero x(0).
target - differential equation to be integrated
Method Detail

step

public void step(RVector x)
Description copied from interface: Solver
Computes step integration from time t to t+dt of x' = f(x). The params last value position is modified.

Specified by:
step in interface Solver
Overrides:
step in class Euler
Parameters:
x - argument of f(x)