Mercurial > hg > python-allan
diff allan.py @ 2:ff2192f47448
Minor cleanup
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Tue, 24 Mar 2015 18:10:40 +0100 |
parents | ebc4e1d7c32f |
children |
line wrap: on
line diff
--- a/allan.py Tue Mar 24 18:10:10 2015 +0100 +++ b/allan.py Tue Mar 24 18:10:40 2015 +0100 @@ -146,11 +146,10 @@ tau = np.asarray(tau) # partitioning - p = (tau // tau0).astype(int) + p = (tau // tau0).astype(np.int32) return _xavar(x, p) / (tau0 * tau0) def xadev(x, tau, tau0=1.0): - return np.sqrt(xavar(x, tau, tau0))