1package umontreal.ssj.mcqmctools.anova;
3import umontreal.ssj.stat.Tally;
4import umontreal.ssj.rng.RandomStream;
5import umontreal.ssj.hups.PointSetIterator;
6import umontreal.ssj.mcqmctools.*;
17 protected int nSamples;
20 public MonteCarloSampler(
int nSamples) {
21 this.nSamples = nSamples;
24 public MonteCarloSampler(
int nSamples,
RandomStream stream) {
25 this.nSamples = nSamples;
49 this.nSamples = nSamples;
72 for (
int i = 0; i < nSamples; i++) {
88 for (
int i = 0; i < nSamples; i++) {
97 public String toString() {
98 String s =
"Monte Carlo Sampler [samples=" +
getNumSamples() +
"]";
100 s +=
" [stream=" +
getStream().getClass().getSimpleName() +
"]";
void add(double x)
Gives a new observation x to the statistical collector.
This is the interface for iterators that permit one to go through the points of a PointSet and the su...
int resetToNextPoint()
Increases the current point index by 1 and returns its new value.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...