PercentileCalculator percentile = new PercentileCalculator(q);
double[] spreads = getSpreads(underlyingPool, creditSpreadTenors, creditSpreadTermStructures, creditSpreadTenor);
return percentile.evaluate(spreads);
}
// ----------------------------------------------------------------------------------------------------------------------------------------
// Method to extract out the creditSpreadTenor spreads for the names in the underlying pool