comparison allan.py @ 2:ff2192f47448

Minor cleanup
author Daniele Nicolodi <daniele@grinta.net>
date Tue, 24 Mar 2015 18:10:40 +0100
parents ebc4e1d7c32f
children
comparison
equal deleted inserted replaced
1:ebc4e1d7c32f 2:ff2192f47448
144 144
145 x = np.asarray(x) 145 x = np.asarray(x)
146 tau = np.asarray(tau) 146 tau = np.asarray(tau)
147 147
148 # partitioning 148 # partitioning
149 p = (tau // tau0).astype(int) 149 p = (tau // tau0).astype(np.int32)
150 150
151 return _xavar(x, p) / (tau0 * tau0) 151 return _xavar(x, p) / (tau0 * tau0)
152 152
153 153
154 def xadev(x, tau, tau0=1.0): 154 def xadev(x, tau, tau0=1.0):
155
156 return np.sqrt(xavar(x, tau, tau0)) 155 return np.sqrt(xavar(x, tau, tau0))