org.spaceroots.mantissa.ode
Class MidpointIntegrator
- java.lang.Object
-
- org.spaceroots.mantissa.ode.RungeKuttaIntegrator
-
- org.spaceroots.mantissa.ode.MidpointIntegrator
-
- All Implemented Interfaces:
- FirstOrderIntegrator
public class MidpointIntegrator extends RungeKuttaIntegrator
This class implements a second order Runge-Kutta integrator for Ordinary Differential Equations.This method is an explicit Runge-Kutta method, its Butcher-array is the following one :
0 | 0 0 1/2 | 1/2 0 |---------- | 0 1
-
-
Constructor Summary
Constructors Constructor and Description MidpointIntegrator(double step)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetName()Get the name of the method.-
Methods inherited from class org.spaceroots.mantissa.ode.RungeKuttaIntegrator
addSwitchingFunction, getCurrentStepsize, getCurrentStepStart, getStepHandler, integrate, setStepHandler
-
-
-
-
Constructor Detail
-
MidpointIntegrator
public MidpointIntegrator(double step)
Simple constructor. Build a midpoint integrator with the given step.- Parameters:
step- integration step
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the method.- Specified by:
getNamein interfaceFirstOrderIntegrator- Specified by:
getNamein classRungeKuttaIntegrator- Returns:
- name of the method
-
-
DataMelt 3.0 © DataMelt by jWork.ORG