next up previous contents
Next: Gathering results with Up: SIM : a C++ Previous: The queue class

Gathering and analyzing results

In this section we present the histogram and analysis class from the sim library. These classes can be used to gather and analyze the results of a simulation. Results can be gathered by taking explicit samples with the method sample, as is the case in the example of the dining philosophers, or by using the report members, as is the case in the example of the M/M/1 queue.

The class analysis makes it possible to analyze a histogram. It provides members for taking confidence intervals, for determining the covariance and correlation of two variables, for analyzing the behavior of the simulation and for fitting curves and probability distributions.





A Eliëns
Tue Oct 31 09:27:21 MET 1995