Class RungeKuttaIntegrator
- java.lang.Object
-
- dev.nm.analysis.differentialequation.ode.ivp.solver.rungekutta.RungeKuttaIntegrator
-
- All Implemented Interfaces:
ODEIntegrator
public class RungeKuttaIntegrator extends Object implements ODEIntegrator
This integrator works with a single-step stepper which estimates the solution for the next step given the solution of the current step.
-
-
Constructor Summary
Constructors Constructor Description RungeKuttaIntegrator(RungeKuttaStepper stepper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector[]
integrate(ODE1stOrder ode, double[] x)
This is the integration method that approximates the solution of a first order ODE.
-
-
-
Constructor Detail
-
RungeKuttaIntegrator
public RungeKuttaIntegrator(RungeKuttaStepper stepper)
-
-
Method Detail
-
integrate
public Vector[] integrate(ODE1stOrder ode, double[] x)
Description copied from interface:ODEIntegrator
This is the integration method that approximates the solution of a first order ODE.- Specified by:
integrate
in interfaceODEIntegrator
- Parameters:
ode
- the ODEx
- the times, x-axis, grid points, or the variable values- Returns:
- the function values, y, at the grid points
-
-