18
18
package org.apache.commons.math.ode.nonstiff;
20
20
import org.apache.commons.math.ode.DerivativeException;
21
import org.apache.commons.math.ode.sampling.AbstractStepInterpolator;
22
21
import org.apache.commons.math.ode.sampling.StepInterpolator;
40
39
* @see MidpointIntegrator
41
* @version $Revision: 782432 $ $Date: 2009-06-07 15:08:26 -0400 (Sun, 07 Jun 2009) $
40
* @version $Revision: 811827 $ $Date: 2009-09-06 11:32:50 -0400 (Sun, 06 Sep 2009) $
45
44
class MidpointStepInterpolator
46
45
extends RungeKuttaStepInterpolator {
47
/** Serializable version identifier */
48
private static final long serialVersionUID = -865524111506042509L;
48
50
/** Simple constructor.
49
51
* This constructor builds an instance that is not usable yet, the
50
* {@link AbstractStepInterpolator#reinitialize} method should be called
51
* before using the instance in order to initialize the internal arrays. This
52
* constructor is used only in order to delay the initialization in
53
* some cases. The {@link RungeKuttaIntegrator} class uses the
54
* prototyping design pattern to create the step interpolators by
55
* cloning an uninitialized model and latter initializing the copy.
53
* org.apache.commons.math.ode.sampling.AbstractStepInterpolator#reinitialize}
54
* method should be called before using the instance in order to
55
* initialize the internal arrays. This constructor is used only
56
* in order to delay the initialization in some cases. The {@link
57
* RungeKuttaIntegrator} class uses the prototyping design pattern
58
* to create the step interpolators by cloning an uninitialized model
59
* and later initializing the copy.
57
61
public MidpointStepInterpolator() {