Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aewallin committed Nov 25, 2023
1 parent 25d95ff commit beb1fb3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
31 changes: 15 additions & 16 deletions allantools/noise_kasdin.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,27 +208,26 @@ def c_mvar(self):
return -3.0

def adev_from_qd(self, tau0=1.0, tau=1.0):
""" prefactor for Allan deviation for noise
type defined by (qd, b, tau0)
""" prefactor for Allan deviation for noise type defined by (qd, b, tau0)
Colored noise generated with (qd, b, tau0) parameters will
show an Allan variance of:
Colored noise generated with (qd, b, tau0) parameters will
show an Allan variance of:
AVAR = prefactor * h_a * tau^c
AVAR = prefactor * h_a * tau^c
where a = b + 2 is the slope of the frequency PSD.
and h_a is the frequency PSD prefactor S_y(f) = h_a * f^a
where a = b + 2 is the slope of the frequency PSD.
and h_a is the frequency PSD prefactor S_y(f) = h_a * f^a
The relation between a, b, c is:
a b c(AVAR) c(MVAR)
-----------------------
-2 -4 1 1
-1 -3 0 0
0 -2 -1 -1
+1 -1 -2 -2
+2 0 -2 -3
The relation between a, b, c is:
a b c(AVAR) c(MVAR)
-----------------------
-2 -4 1 1
-1 -3 0 0
0 -2 -1 -1
+1 -1 -2 -2
+2 0 -2 -3
Coefficients from [Dawkins2007]_.
Coefficients from [Dawkins2007]_.
"""
g_b = self.phase_psd_from_qd(tau0)
Expand Down
4 changes: 4 additions & 0 deletions docs/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Real-Time Statistics
Noise Generation
----------------

.. autoclass:: allantools.noise_kasdin.Noise
:members:

.. autofunction:: allantools.noise.white
.. autofunction:: allantools.noise.brown
.. autofunction:: allantools.noise.violet
Expand All @@ -75,6 +78,7 @@ Utilities
.. autofunction:: phase2frequency
.. autofunction:: phase2radians
.. autofunction:: psd2allan
.. autofunction:: tau_generator
.. autofunction:: edf_simple
.. autofunction:: edf_greenhall
.. autofunction:: edf_totdev
Expand Down

0 comments on commit beb1fb3

Please sign in to comment.