scipy.stats.signaltonoise

scipy.stats.signaltonoise(a, axis=0, ddof=0)

Calculates the signal-to-noise ratio, defined as the ratio between the mean and the standard deviation.

Parameters :

a: array-like :

An array like object containing the sample data

axis: int or None, optional :

If axis is equal to None, the array is first ravel’d. If axis is an integer, this is the axis over which to operate. Defaults to None???0

ddof : integer, optional, default 0

degrees of freedom correction for standard deviation

Returns :

array containing the value of the ratio of the mean to the standard :

deviation along axis, or 0, when the standard deviation is equal to 0 :

Previous topic

scipy.stats.samplestd

Next topic

scipy.stats.bayes_mvs

This Page