Table of Contents

Module: histogram sam/analysis/histogram.py
Imported modules   
from Numeric import ravel, zeros
Functions   
histogram
  histogram 
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


Table of Contents

This document was automatically generated on Wed Oct 30 23:04:21 2002 by HappyDoc version 2.0