Package com.opengamma.analytics.math.statistics.descriptive

Examples of com.opengamma.analytics.math.statistics.descriptive.SampleStandardDeviationCalculator


    final int nData = xData.length;
    final double[] res = new double[nData];

    Function1D<double[], Double> calculator = new MeanCalculator();
    _renorm[0] = calculator.evaluate(xData);
    calculator = new SampleStandardDeviationCalculator();
    _renorm[1] = calculator.evaluate(xData);

    final double tmp = _renorm[0] / _renorm[1];
    for (int i = 0; i < nData; ++i) {
      res[i] = xData[i] / _renorm[1] - tmp;
View Full Code Here


    ArgumentChecker.notNull(underlyingPool, "Underlying pool");
    ArgumentChecker.notNull(creditSpreadTenors, "Credit spread tenors");
    ArgumentChecker.notNull(creditSpreadTermStructures, "Credit spread term structures");
    ArgumentChecker.notNull(creditSpreadTenor, "Credit spread tenor");

    SampleStandardDeviationCalculator standardDeviation = new SampleStandardDeviationCalculator();

    double[] spreads = getSpreads(underlyingPool, creditSpreadTenors, creditSpreadTermStructures, creditSpreadTenor);

    return standardDeviation.evaluate(spreads);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.analytics.math.statistics.descriptive.SampleStandardDeviationCalculator

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.