1package umontreal.ssj.mcqmctools.anova;
3import umontreal.ssj.stat.Tally;
4import umontreal.ssj.stat.list.ListOfTallies;
5import umontreal.ssj.rng.*;
7import umontreal.ssj.mcqmctools.*;
16 protected int nReplicates;
20 protected Tally statValue =
null;
29 this.nReplicates = nReplicates;
30 this.integrator = integrator;
54 return integrator.getTotalSimulations();
74 integrator.setStream(stream);
82 return integrator.getStream();
93 for (
int i = 0; i < nReplicates; i++)
94 statValue.add(integrator.integrate(model));
102 if (statValue ==
null)
103 this.statValue =
new Tally();
107 return statValue.average();
117 double[] val =
new double[
stat.size()];
120 for (
int i = 0; i < nReplicates; i++) {
122 integrator.integrate(model, innerStat);
133 if (statValueList ==
null || statValueList.size() != values.length)
136 statValueList.init();
138 statValueList.average(values);
142 public String toString() {
143 return "Replicator" +
" [replicates=" + nReplicates +
"]" +
" [integrator=" + integrator +
"]";
void init()
Initializes this list of statistical probes by calling umontreal.ssj.stat.StatProbe....
Represents a list of tally statistical collectors.
static ListOfTallies< Tally > createWithTally(int size)
This factory method constructs and returns a list of tallies with size instances of umontreal....
void average(double[] r)
Computes the average for each tally in this list, and stores the averages in the array r.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
Tools for Collecting Statistics and computing estimators and confidence intervals.