| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Histogram
Generic histogram class for real numbers
Example:>>> h = Histogram(5) # Initializing, bin width = 5 >>> h << [2,3,2,7,8,5,5,0,7,9] # Adding more items >>> print h N = 10, mean +- sd: 4.8000 +- 2.9740 [ 0.000, 5.000): **** [ 5.000, 10.000): ******
|
|||
|
__init__(self,
bin_width=1,
data=[]) Initializes the histogram with the given data set. |
||
|
__lshift__(self,
data) Adds a single number or elements of an iterable to the histogram. |
||
|
__plot__(self,
context,
bbox,
palette,
*args,
**kwds) Plotting support |
||
|
__str__(self) Returns the string representation of the histogram |
||
|
_get_bin(self,
num,
create=False) Returns the bin index corresponding to the given number. |
||
| _get_mean(self) | ||
| _get_n(self) | ||
| _get_sd(self) | ||
| _get_var(self) | ||
|
add(self,
num,
repeat=1) Adds a single number to the histogram. |
||
|
add_many(self,
data) Adds a single number or elements of an iterable to the histogram. |
||
|
bins(self) Generator returning the bins of the histogram in increasing order |
||
|
clear(self) Clears the collected data |
||
|
Inherited from |
|||
|
|||
|
mean Mean of the elements |
||
|
n Number of elements in the histogram |
||
|
sd Standard deviation of the elements |
||
|
var Variance of the elements |
||
|
Inherited from |
|||
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
meanMean of the elements
|
nNumber of elements in the histogram
|
sdStandard deviation of the elements
|
varVariance of the elements
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Thu Feb 14 12:44:01 2008 | http://epydoc.sourceforge.net |