SampleVarianceCalculator variance = new SampleVarianceCalculator();
double[] spreads = getSpreads(underlyingPool, creditSpreadTenors, creditSpreadTermStructures, creditSpreadTenor);
return variance.evaluate(spreads);
}
// ----------------------------------------------------------------------------------------------------------------------------------------
// Calculate the standard deviation of the spread of the obligors in the underlying pool for a given tenor