h.map.maker | R Documentation |
Creates a mapping between the Hurst exponent of a fractional Gaussian noise and the weights and lag-one parameters of the specified AR(1) mixture approximation. The mapping functions are drawn by splines based on precomputed values included in the package.
h.map.maker(m=4, lagmax=1000, model="fgn")
m |
The number of AR(1) processes used in the approximate model. |
lagmax |
The number of lags of which the approximate autocorrelation functions are supposed to match the theoretical fGn one. |
model |
The long memory process for which |
Returns a list of functions. The m
first maps the Hurst exponent to the lag-one correlation parameters, and the last m
will map to the weights.
Eirik Myrvoll-Nilsen eirik.myrvoll-nilsen@uit.no
Sørbye, S., Myrvoll-Nilsen, E. and Rue, H. (2018) An approximate fractional Gaussian noise model with O(n) computational cost. Statistics and Computing.
inla.climate
m <- 4 lagmax <- 1000 H <- 0.8 h.mapping <- h.map.maker(m = m, lagmax = lagmax) params <- numeric(m) weights <- numeric(m) for(i in 1:m){ params[i] <- h.mapping[[i]](H) weights[i] <- h.mapping[[m+i]](H) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.