Skip to content

Commit

Permalink
pdev documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
aewallin committed Dec 2, 2023
1 parent f5b0867 commit 377e389
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions allantools/allantools.py
Expand Up @@ -385,6 +385,16 @@ def calc_adev_phase(phase, rate, mj, stride):
def pdev(data, rate=1.0, data_type="phase", taus=None):
""" Parabolic deviation.
Use for evaluating uncertainty of omega-average of frequency.
.. math::
\\sigma^2_{PDEV}(m\\tau_0) = { 72 \\over (N-2m) (m \\tau_0 )^2 }
\\sum_{i=0}^{N-2m-1} \\lbrace
\\sum_{k=0}^{m-1} \\lbrace { m-1 \\over 2} - k \\rbrace {x}_{i+k} - x_{i+k+m} \\rbrace^2
for `m>1` and for an averaging-factor of `m=1` PDEV equals ADEV/MDEV: `\\sigma_{PDEV}(\\tau_0)=\\sigma_{ADEV}(\\tau_0)`.
Parameters
----------
data: np.array
Expand Down

0 comments on commit 377e389

Please sign in to comment.