histogram (
inarray,
numbins=10,
defaultlimits=None,
)
Purpose: Returns (i) an array of histogram bin counts,
(ii) the smallest value of the histogram binning, and
(iii) the bin width (the last 2 are not necessarily
integers).
Default number of bins is 10. Defaultlimits can be
None (the routine picks bins spanning all the numbers
in the inarray) or a 2-sequence (lowerlimit,
upperlimit). Returns all of the following: array of
bin values, lowerreallimit, binsize, extrapoints. This
code was adapted from stats.py, which is under the
GNU GPl. Used by: doPdf
Uses: Numeric
Input: inarray : Numeric.array, num_bins : int, defaultlimits
: (int, int)
Output: histogram : (Numeric.array, float, float, int)
Preconditions: None
Postconditions: None
SRS Refs: 3.2.1.3g, 3.2.1.4
Author: Copyright (c) 1999-2000 Gary Strangman with alterations
to handle arrays of longs by mayadm
Date: 30/9/02
|