Package com.opengamma.analytics.math.interpolation

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


    ArgumentChecker.noNulls(bSlines, "null bSplines");
    _bSplines = bSlines;
  }

  public BasisSplineVolatilityTermStructureProvider(final double t1, final double t2, final int nKnots, final int degree) {
    final BasisFunctionGenerator gen = new BasisFunctionGenerator();
    _bSplines = gen.generateSet(t1, t2, nKnots, degree);
  }
View Full Code Here


    }
  }

  @Test
  public void testPSplineFit2() {
    final BasisFunctionGenerator generator = new BasisFunctionGenerator();
    List<Function1D<Double, Double>> basisFuncs = generator.generateSet(0, 12, 100, 3);
    List<Function1D<Double, Double>> basisFuncsLog = generator.generateSet(-5, 3, 100, 3);

    final GeneralizedLeastSquare gls = new GeneralizedLeastSquare();

    final Interpolator1D interpolator = new CombinedInterpolatorExtrapolator(new DoubleQuadraticInterpolator1D(), new FlatExtrapolator1D());
View Full Code Here

TOP

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

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.