Package com.opengamma.analytics.math.interpolation

Examples of com.opengamma.analytics.math.interpolation.StepInterpolator1D


    }
  }

  @Override
  public Double evaluate(Double x) {
    StepInterpolator1D interpolator = new StepInterpolator1D();
    Interpolator1DDataBundle dataBundle = interpolator.getDataBundleFromSortedArrays(_steps, _monthlyCumulativeFactors);
    return interpolator.interpolate(dataBundle, x);
  }
View Full Code Here


    assertFalse(SURFACE.equals(other));
    other = InterpolatedFromCurvesDoublesSurface.from(true, new double[] {1, 3, 4, 5, 6, 7}, CURVES, INTERPOLATOR, NAME);
    assertFalse(SURFACE.equals(other));
    other = InterpolatedFromCurvesDoublesSurface.from(true, POINT_PRIMITIVE, new Curve[] {C1, C2, C3, C4, C5, ConstantDoublesCurve.from(3.)}, INTERPOLATOR, NAME);
    assertFalse(SURFACE.equals(other));
    other = InterpolatedFromCurvesDoublesSurface.from(true, POINT_PRIMITIVE, CURVES, new StepInterpolator1D(), NAME);
    assertFalse(SURFACE.equals(other));
    other = InterpolatedFromCurvesDoublesSurface.from(true, POINT_PRIMITIVE, CURVES, INTERPOLATOR, "E");
    assertFalse(SURFACE.equals(other));

    other = InterpolatedFromCurvesDoublesSurface.fromSorted(true, POINT_PRIMITIVE_SORTED, CURVES_SORTED, INTERPOLATOR, NAME);
View Full Code Here

    other = new InterpolatedDoublesSurface(X_PRIMITIVE, X_PRIMITIVE, Z_PRIMITIVE, INTERPOLATOR, NAME);
    assertFalse(other.equals(surface));
    other = new InterpolatedDoublesSurface(X_PRIMITIVE, Y_PRIMITIVE, Y_PRIMITIVE, INTERPOLATOR, NAME);
    assertFalse(other.equals(surface));
    other = new InterpolatedDoublesSurface(X_PRIMITIVE, Y_PRIMITIVE, Z_PRIMITIVE,
        new GridInterpolator2D(INTERPOLATOR_1D, new StepInterpolator1D()), NAME);
    assertFalse(other.equals(surface));
    other = new InterpolatedDoublesSurface(X_PRIMITIVE, Y_PRIMITIVE, Z_PRIMITIVE, INTERPOLATOR, "P");
    assertFalse(other.equals(surface));
    other = new InterpolatedDoublesSurface(X_OBJECT, Y_OBJECT, Z_OBJECT, INTERPOLATOR, NAME);
    assertEquals(surface, other);
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.math.interpolation.StepInterpolator1D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.