Examples of SemiLocalCubicSplineInterpolator


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

   *
   */
  @Test
  public void firstDerivativeFiniteDifferenceTest() {
    final PiecewisePolynomialInterpolator[] interps = new PiecewisePolynomialInterpolator[] {new NaturalSplineInterpolator(), new CubicSplineInterpolator(),
        new PiecewiseCubicHermiteSplineInterpolator(), new ConstrainedCubicSplineInterpolator(), new SemiLocalCubicSplineInterpolator() };
    final int nInterps = interps.length;
    for (int k = 0; k < nInterps; ++k) {
      final double[] xValues = new double[] {1., 2.8, 3.1, 5.9, 10., 16. };
      final double[] yValues = new double[] {1., 2., 3., -2., 5., -5. };
      final int nData = xValues.length;
View Full Code Here

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

   *
   */
  @Test
  public void secondDerivativeFiniteDifferenceTest() {
    final PiecewisePolynomialInterpolator[] interps = new PiecewisePolynomialInterpolator[] {new NaturalSplineInterpolator(), new CubicSplineInterpolator(),
        new PiecewiseCubicHermiteSplineInterpolator(), new ConstrainedCubicSplineInterpolator(), new SemiLocalCubicSplineInterpolator() };
    final int nInterps = interps.length;
    for (int k = 0; k < nInterps; ++k) {
      final double[] xValues = new double[] {1., 2.8, 3.1, 5.9, 10., 16. };
      final double[] yValues = new double[] {1., 2., 3., -2., 5., -5. };
      final int nData = xValues.length;
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.