avar | R Documentation |
This function estimates the Allan variance.
avar(x, type = "mo", ...) ## Default S3 method: avar(x, type = "mo", freq = 1, ...) ## S3 method for class 'imu' avar(x, type = "mo", ...)
x |
A |
type |
A |
... |
Further arguments passed to other methods. |
The decomposition and the amount of time it takes to perform this function depends on whether you are using the Maximal Overlap or the Tau Overlap.
If the input x
is a vec
, then the function returns a list
that contains:
"levels": The averaging time at each level.
"allan": The estimated Allan variance.
"type": Type of estimator (mo
or to
).
If the input x
is an imu
object, then the function returns a list
that contains:
"sensor": Name of the sensor.
"freq": The frequency at which the error signal is measured.
"n": Sample size of the data.
"type": The types of sensors considered in the data.
"axis": The axes of sensors considered in the data.
"avar": A list containing the computed Allan variance based on the data.
Given N equally spaced samples with averaging time tau = n*tau_0, we define n as an integer such that 1<= n <= N/2. Therefore, n can be selected from {n | n < floor(log2(N))} Based on the latter, we have M = N - 2n levels of decomposition. The Maximal-overlap estimator is given by:
See PDF Manual
where
See PDF Manual
.
Given N equally spaced samples with averaging time tau = n*tau_0, we define n as an integer such that 1<= n <= N/2. Therefore, n can be selected from {n | n < floor(log2(N))} Based on the latter, we have m = ≤ft\lfloor {\frac{{N - 1}}{n}} \right\rfloor - 1 levels of decomposition. The tau-overlap estimator is given by:
where See PDF Manual.
Long-Memory Processes, the Allan Variance and Wavelets, D. B. Percival and P. Guttorp
set.seed(999) Xt = rnorm(10000) av_mat_mo = avar(Xt, type = "mo", freq = 100) av_mat_tau = avar(Xt, type = "to")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.