Module Scientific.Statistics.Histogram

Class Histogram: Histogram in one variable

Constructor: Histogram(data, bins, range=None)

data

a sequence of data points

bins

the number of bins into which the data is to be sorted

range

a tuple of two values, specifying the lower and the upper end of the interval spanned by the bins. Any data point outside this interval will be ignored. If no range is given, the smallest and largest data values are used to define the interval.

The number of points in a bin can be obtained by indexing the histogram with the bin number. Application of len() yields the number of bins. A histogram thus behaves like a sequence of numbers.

Methods: