Example usage for org.apache.commons.math3.ode.nonstiff MidpointIntegrator MidpointIntegrator

List of usage examples for org.apache.commons.math3.ode.nonstiff MidpointIntegrator MidpointIntegrator

Introduction

In this page you can find the example usage for org.apache.commons.math3.ode.nonstiff MidpointIntegrator MidpointIntegrator.

Prototype

public MidpointIntegrator(final double step) 

Source Link

Document

Simple constructor.

Usage

From source file:de.bund.bfr.math.IntegratorFactory.java

public FirstOrderIntegrator createIntegrator() {
    switch (type) {
    case EULER:/*from ww w  .  j  ava 2  s  .  c o m*/
        return new EulerIntegrator(step);
    case GILL:
        return new GillIntegrator(step);
    case MIDPOINT:
        return new MidpointIntegrator(step);
    case RUNGE_KUTTA:
        return new ClassicalRungeKuttaIntegrator(step);
    case THREE_EIGHTHES:
        return new ThreeEighthesIntegrator(step);
    default:
        throw new RuntimeException("Unknown type of IntegratorFactory: " + type);
    }
}

From source file:org.orekit.propagation.conversion.MidpointIntegratorBuilder.java

/** {@inheritDoc} */
public AbstractIntegrator buildIntegrator(final Orbit orbit) {
    return new MidpointIntegrator(step);
}

From source file:ummisco.gaml.extensions.maths.ode.utils.solver.MidpointSolver.java

public MidpointSolver(final double step, final GamaMap<String, IList<Double>> integrated_val) {
    super(step, new MidpointIntegrator(step), integrated_val);
}