stat() statistics() command calculates the statistics for all the channels in the range. Using plotmean() plotrms() we can plot mean and RMS values of each channels. The examples are as shows below:
You need to import Numeric for Scientific. You can access the methods by importing the class or all methods:
>>> from Numeric import * >>> import Scientific.Statistics >>> Scientific.Statistics.median([1,2,3,5,6]) 3.0or alternatively
>>> from Scientific.Statistics import * >>> median([1,2,3,5,6]) 3.0
Available method in class Scientific.Statistics:
moment(data, order, about=None, theoretical=1) mean(data) weightedMean(data, sigma) variance(data) standardDeviation(data) median(data) mode(data) normalizedMoment(data, order) skewness(data) kurtosis(data) correlation(data1, data2)
There are also two classes for histograms:
Histogram WeightedHistogram(Histogram)
The following explains only those Scientific methods which are useful
for Boa. Consult the scripts or the (very sparse) documentation for
more info.