SciPy

scipy.stats.mstats.signaltonoise

scipy.stats.mstats.signaltonoise(data, axis=0)[source]

Calculates the signal-to-noise ratio, as the ratio of the mean over standard deviation along the given axis.

Parameters :

data : sequence

Input data

axis : {0, int}, optional

Axis along which to compute. If None, the computation is performed on a flat version of the array.