Package com.opengamma.analytics.math.function

Examples of com.opengamma.analytics.math.function.PiecewisePolynomialFunction1D.integrate()


    PiecewisePolynomialFunction1D func = new PiecewisePolynomialFunction1D();

    final int nPts = 101;
    for (int i = 0; i < nPts; ++i) {
      final double key = 0. + 5. / (nPts - 1) * i;
      System.out.println(key + "\t" + interpolator.interpolate(xValues, yValues, key) + "\t" + func.integrate(result, 0., key));
    }

    System.out.println("\n");

    for (int i = 0; i < nPts; ++i) {
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.