Package com.opengamma.analytics.math.curve

Examples of com.opengamma.analytics.math.curve.DoublesCurveNelsonSiegel


  }

  @Override
  public YieldAndDiscountCurve generateCurve(final String name, final double[] parameters) {
    ArgumentChecker.isTrue(parameters.length == NB_PARAMETERS, "Nelson-Siegel should have 4 parameters");
    return new YieldCurve(name, new DoublesCurveNelsonSiegel(name, parameters));
  }
View Full Code Here


  }

  @Test
  public void generateCurveYieldNelsonSiegel() {
    final YieldAndDiscountCurve curveGenerated = GENERATOR_NS.generateCurve(CURVE_NAME_1, PARAMETERS_NS);
    final YieldAndDiscountCurve curveExpected = new YieldCurve(CURVE_NAME_1, new DoublesCurveNelsonSiegel(CURVE_NAME_1, PARAMETERS_NS));
    assertEquals("GeneratorCurveYieldNelsonSiegel: generate curve", curveExpected, curveGenerated);

  }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.math.curve.DoublesCurveNelsonSiegel

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.