Data are recorded in a histogram, when using the method sample. This method takes the value of the sample and its frequency, say x and y and adjusts the internal histogram data. If the type of the histogram is equal to FREQUENCY, the y value is added to the sum of frequencies of the column, that x falls in. If the type of the histogram is equal to WEIGHTED, the y value is multiplied by the time since the last sample was taken. In a histogram of type SERIES, the x-axis represents time, so the x value is ignored and the y value is added to the columns between the last column in which a sample was put and the column that represents the current simulation time. In the case of the dining philosophers, for example, a histogram of type FREQUENCY suffices. If we were interested in weighted averages, as is the case in analyzing queue sizes, the histogram should be of type WEIGHTED.
The report methods use the sample function. If these methods are used the library adds the samples.