@np.deprecate(message='scipy.stats.signaltonoise is deprecated in scipy 0.16.0')
def signaltonoise(a, axis=0, ddof=0):
 a = np.asanyarray(a)
 m = a.mean(axis)
 sd = a.std(axis=axis, ddof=ddof)
 return np.where((sd == 0), 0, (m / sd))

@ np . deprecate ( message = 'scipy.stats.signaltonoise is deprecated in scipy 0.16.0' ) def signaltonoise ( a , axis = 0 , ddof = 0 ) : a = np . asanyarray ( a ) m = a . mean ( axis ) sd = a . std ( axis = axis , ddof = ddof ) return np . where ( ( sd == 0 ) , 0 , ( m / sd ) )
the signal-to-noise ratio of the input data .