Package com.opengamma.analytics.math.interpolation.data

Examples of com.opengamma.analytics.math.interpolation.data.InterpolatorNDDataBundle


  }

  protected void assertCosExp(final InterpolatorND interpolator, final double tol) {
    double x1, x2;
    double[] x;
    final InterpolatorNDDataBundle dataBundle = interpolator.getDataBundle(COS_EXP_DATA);
    for (int i = 0; i < 10; i++) {
      x1 = 10 * getRandom().nextDouble();
      x2 = 10 * getRandom().nextDouble();
      x = new double[] {x1, x2};
      final double fit = interpolator.interpolate(dataBundle, x);
View Full Code Here


    final double x1 = 10 * random.nextDouble();
    final double x2 = 10 * random.nextDouble();
    final double x3 = 10 * random.nextDouble();
    // Fails utterly for flat surface since the variogram function will be zero for all r
    final InterpolatorND interpolator = new KrigingInterpolatorND(1.99);
    final InterpolatorNDDataBundle dataBundle = interpolator.getDataBundle(FLAT_DATA);
    assertEquals(INTERPOLATOR.interpolate(dataBundle, new double[] {x1, x2, x3}), 0, 0);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.math.interpolation.data.InterpolatorNDDataBundle

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.