SSJ
V. labo.

Package umontreal.iro.lecuyer.stat.matrix

Provides facilities to construct and manage rectangular 2D arrays of statistical probes.

See:
          Description

Interface Summary
MatrixOfObservationListener Represents an object that can listen to observations broadcast by matrices of statistical probes.
 

Class Summary
MatrixOfFunctionOfMultipleMeansTallies<E extends FunctionOfMultipleMeansTally> Represents a matrix of statistical collectors for functions of multiple means.
MatrixOfStatProbes<E extends StatProbe> Represents a matrix of statistical probes that can be managed simultaneously.
MatrixOfTallies<E extends Tally> Represents a matrix of tally statistical collectors.
 

Package umontreal.iro.lecuyer.stat.matrix Description

Provides facilities to construct and manage rectangular 2D arrays of statistical probes. Sometimes, lists of statistical probes provided by the package stat.list are not sufficient. For example, statistics can be obtained for different types of customers in different periods, for different parts of various machines, etc. In some cases, this can be managed by encoding the observations in lists, but matrices offer reporting facilities for rows and columns.

In contrast with a list of statistical probes which is constructed empty and in which probes are added, a matrix of statistical probes is created with predefined dimensions, and a probe is affected to each cell. A cell of a matrix is located by a row and a column. Alternatively, some classes of this package provide factory methods that constructs a matrix, and fills it with newly-constructed statistical probes.

The MatrixOfStatProbes class represents a matrix of statistical probes providing facilities to get matrices of sums, matrices of averages, and to format a report for a specified row or column. It provides various ways to access the internal statistical probes. First, a get method can return a probe corresponding to a cell (r, c). A matrix of probes also provides an iterator method that returns an iterator for traversing every probe row by row. One can also use the viewRow and viewColumn methods to obtain lists corresponding to rows or columns of the matrix.

The package defines one subclass for each type of probe. The MatrixOfTallies can be used to manage a group of tallies, and to add values to each one using a single method call. The MatrixOfFunctionOfMultipleMeansTallies is available to regroup FunctionOfMultipleMeansTally objects.

All classes in this package representing matrices of probes support the observer design pattern similarly to the classes in package stat. A matrix of statistical probes maintains a list of registered MatrixOfObservationListener objects, and broadcasts information to all its registered observers when it receives a new matrix of observations. Any object that implements the interface MatrixOfObservationListener can register as an observer.


SSJ
V. labo.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.