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

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

Introduction

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

Prototype

public AdamsMoultonIntegrator(final int nSteps, final double minStep, final double maxStep,
        final double[] vecAbsoluteTolerance, final double[] vecRelativeTolerance)
        throws IllegalArgumentException 

Source Link

Document

Build an Adams-Moulton integrator with the given order and error control parameters.

Usage

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

/** {@inheritDoc} */
public AbstractIntegrator buildIntegrator(final Orbit orbit) throws PropagationException {
    final double[][] tol = NumericalPropagator.tolerances(dP, orbit, OrbitType.CARTESIAN);
    return new AdamsMoultonIntegrator(nSteps, minStep, maxStep, tol[0], tol[1]);
}

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

public AdamsMoultonSolver(final int nSteps, final double minStep, final double maxStep,
        final double scalAbsoluteTolerance, final double scalRelativeTolerance,
        final GamaMap<String, IList<Double>> integrated_val) {
    super((minStep + maxStep) / 2,
            new AdamsMoultonIntegrator(nSteps, minStep, maxStep, scalAbsoluteTolerance, scalRelativeTolerance),
            integrated_val);
}