use of cern.jet.random.engine.RandomEngine in project processdash by dtuma.
the class LognormalConfidenceInterval method generateBootstrapSamples.
private double[] generateBootstrapSamples() {
RandomEngine u = new MersenneTwister();
Normal normal = new Normal(0, 1, u);
ChiSquare chisquare = new ChiSquare(numSamples - 1, u);
int bootstrapSize = Settings.getInt("logCI.bootstrapSize", 2000);
double[] samples = new double[bootstrapSize];
for (int i = bootstrapSize; i-- > 0; ) samples[i] = generateBootstrapSample(normal, chisquare, numSamples, logstd);
Arrays.sort(samples);
return samples;
}
Aggregations