public double gaussianAverageShortfall(final double target) {
final double m = statistics.mean();
final double std = statistics.standardDeviation();
final CumulativeNormalDistribution gIntegral = new CumulativeNormalDistribution(m, std);
final NormalDistribution g = new NormalDistribution(m, std);
return ((target - m) + std * std * g.op(target) / gIntegral.op(target));
}
/*
* TODO: where do we need this one???????????????????????????????? //! Helper class for precomputed distributions class
* StatsHolder { public: typedef Real value_type; StatsHolder(Real mean, Real standardDeviation) : mean_(mean),