double[] x = new double[dimension];
final Statistics statistics = new Statistics();
IntegrationResult result = new IntegrationResult() {
public double value() {
return statistics.average();
}
public double errorEstimate() {
if (statistics.n() >= MIN_EVALUATIONS) {
return (statistics.sigma() / Math.sqrt(statistics.n() - 1)) *