Examples of KrigingInterpolatorDataBundle


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

  @Override
  public Double interpolate(final InterpolatorNDDataBundle data, final double[] x) {     
    validateInput(data, x);
    Validate.isTrue(data instanceof KrigingInterpolatorDataBundle, "KriginInterpolatorND needs a KriginInterpolatorDataBundle");
    KrigingInterpolatorDataBundle krigingData = (KrigingInterpolatorDataBundle) data;
    final List<Pair<double[], Double>> rawData = krigingData.getData();
    final Function1D<Double, Double> variogram = krigingData.getVariogram();
    final double[] w = krigingData.getWeights();

    final int n = rawData.size();
    double sum = 0.0;
    double r;
    for (int i = 0; i < n; i++) {
View Full Code Here

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

    return sum;
  }

  @Override
  public KrigingInterpolatorDataBundle getDataBundle(final double[] x, final double[] y, final double[] z, final double[] values) {
    return new KrigingInterpolatorDataBundle(transformData(x, y, z, values), _beta);
  }
View Full Code Here

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

    return new KrigingInterpolatorDataBundle(transformData(x, y, z, values), _beta);
  }

  @Override
  public KrigingInterpolatorDataBundle getDataBundle(final List<Pair<double[], Double>> data) {
    return new KrigingInterpolatorDataBundle(data, _beta);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.