See: Description
| Interface | Description |
|---|---|
| ObservationListener |
Represents an object that can listen to observations broadcast
by statistical probes.
|
| Class | Description |
|---|---|
| StatProbe |
The objects of this class are statistical probes or
collectors, which are elementary devices for collecting
statistics.
|
| Tally |
This type of statistical collector takes a sequence of real-valued
observations and can return the average,
the variance, a confidence interval for the theoretical mean, etc.
|
| TallyStore |
This class is a variant of
Tally for which the individual
observations are stored in a list implemented as a
DoubleArrayList. |
The class umontreal.iro.lecuyer.simeventsAccumulate computes integrals and averages with respect to time. This class is in package simevents because its operation depends on the simulation clock.
All classes that represent statistical probes support the observer design pattern, well-known in software engineering[#!iGAM98a!#]. This pattern facilitates the separation of data generation (by the simulation program) from data processing (for statistical reports and displays). This can be very helpful in particular in large simulation programs or libraries, where different objects may need to process the same data in different ways. A statistical probe maintains a list of registered umontreal.iro.lecuyer.statObservationListener objects, and broadcasts information to all its registered observers whenever appropriate. Any object that implements the interface umontreal.iro.lecuyer.statObservationListener can register as an observer. For an example, see the program QueueObs in the directory examples.
Subpackages of package stat provide matrices of Tally's
(see the overview on page
of this guide),
and lists of Tally's (see page
of this guide).
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.