Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Measure the linear-drift-insensitive, two-sample, phase/frequency stability
ResourceFunction["HadamardDeviation"][data,r,taus] calculates the linear-drift insensitive two-sample deviation of data along sample times taus at rate r. |
{{n}} | attempts to place n logarithmic spaced samples |
d | places logarithmic spaced samplings with log base d |
{τ1,τ2,…} | tries to use the specified sample times |
All | uses all possible sample times |
Automatic | tries to place a reasonable amount of samples along the whole possible time range |
Calculating the Hadamard deviation for a small sample set at a rate of 2 samples per time unit:
In[1]:= |
Out[1]= |
Display overlapping Hadamard deviation of white noise at a rate of 0.1 for automatically chosen sampling points:
In[2]:= |
Out[4]= |
Display overlapping Hadamard deviation of white noise at a rate of 0.1 for certain sampling points:
In[5]:= |
Out[6]= |
Sample at all possible times:
In[7]:= |
Out[8]= |
Try to sample at 4 different time values:
In[9]:= |
Out[11]= |
The function will try to use a fast evaluation method when the data array is fully real and otherwise prints a warning:
In[12]:= |
Out[14]= |
FrequencyData accepts a Boolean as argument. True signals the use of frequency data as opposed to phase data:
In[15]:= |
Out[17]= |
Overlapping accepts a Boolean as argument. False signals the use of non overlapping strides in the deviation sampling:
In[18]:= |
Out[19]= |
Distinguish random walk from white noise by their distinct slope:
In[20]:= |
Out[22]= |
The Hadamard deviation is is approximately equal to the Allan deviation except for linear drifts:
In[23]:= |
Out[24]= |
Using the fast algorithm is approximately 2 times faster:
In[25]:= |
Out[26]= |
In[27]:= |
Out[27]= |
Requesting a certain amount of samples will not necessarily result in this amount of deviations:
In[28]:= |
Out[29]= |
This work is licensed under a Creative Commons Attribution 4.0 International License