Logo Search packages:      
Sourcecode: python-scientific version File versions  Download package

Scientific::Statistics::Histogram::WeightedHistogram Class Reference

Inheritance diagram for Scientific::Statistics::Histogram::WeightedHistogram:


List of all members.

Detailed Description

Weighted histogram in one variable

Constructor: WeightedHistogram(|data|, |weights|, |bins|, |range|=None)


|data| -- a sequence of data points

|weights| -- a sequence of weights, same length as |data|

|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.

In a weighted histogram, each point has a specific weight. If all
weights are one, the result is equivalent to a standard histogram.
The bin index and 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 bin index - bin count pairs.

Definition at line 88 of file Histogram.py.

Public Member Functions

def __getitem__
def __getslice__
def __init__
def __init__
def __len__
def addData
def addData
def normalize
def normalizeArea

Public Attributes


Private Member Functions

def _addData

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index