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.