updated step interpolators implementations tests to latest interface changes
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@782433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5124ebc4c2
commit
d2429d337c
|
@ -189,7 +189,7 @@ public class ClassicalRungeKuttaIntegratorTest
|
|||
maxError = 0;
|
||||
}
|
||||
public void handleStep(StepInterpolator interpolator,
|
||||
boolean isLast) {
|
||||
boolean isLast) throws DerivativeException {
|
||||
|
||||
double[] interpolatedY = interpolator.getInterpolatedState ();
|
||||
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.junit.Test;
|
|||
public class EulerStepInterpolatorTest {
|
||||
|
||||
@Test
|
||||
public void noReset() {
|
||||
public void noReset() throws DerivativeException {
|
||||
|
||||
double[] y = { 0.0, 1.0, -2.0 };
|
||||
double[][] yDot = { { 1.0, 2.0, -2.0 } };
|
||||
|
|
|
@ -179,9 +179,9 @@ public class GillIntegratorTest
|
|||
maxError = 0;
|
||||
}
|
||||
public void handleStep(StepInterpolator interpolator,
|
||||
boolean isLast) {
|
||||
boolean isLast) throws DerivativeException {
|
||||
|
||||
double[] interpolatedY = interpolator.getInterpolatedState ();
|
||||
double[] interpolatedY = interpolator.getInterpolatedState();
|
||||
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
|
||||
double dx = interpolatedY[0] - theoreticalY[0];
|
||||
double dy = interpolatedY[1] - theoreticalY[1];
|
||||
|
|
|
@ -373,10 +373,10 @@ public class HighamHall54IntegratorTest
|
|||
maxError = 0;
|
||||
}
|
||||
public void handleStep(StepInterpolator interpolator,
|
||||
boolean isLast) {
|
||||
boolean isLast) throws DerivativeException {
|
||||
|
||||
++nbSteps;
|
||||
double[] interpolatedY = interpolator.getInterpolatedState ();
|
||||
double[] interpolatedY = interpolator.getInterpolatedState();
|
||||
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
|
||||
double dx = interpolatedY[0] - theoreticalY[0];
|
||||
double dy = interpolatedY[1] - theoreticalY[1];
|
||||
|
|
|
@ -174,9 +174,9 @@ public class ThreeEighthesIntegratorTest
|
|||
}
|
||||
|
||||
public void handleStep(StepInterpolator interpolator,
|
||||
boolean isLast) {
|
||||
boolean isLast) throws DerivativeException {
|
||||
|
||||
double[] interpolatedY = interpolator.getInterpolatedState ();
|
||||
double[] interpolatedY = interpolator.getInterpolatedState();
|
||||
double[] theoreticalY = pb.computeTheoreticalState(interpolator.getCurrentTime());
|
||||
double dx = interpolatedY[0] - theoreticalY[0];
|
||||
double dy = interpolatedY[1] - theoreticalY[1];
|
||||
|
|
Loading…
Reference in New Issue