ffGn | R Documentation |
A fast algorithm for simulating fractal Gaussian noise.
ffGn(n=1000, H=0.5, mu=0, sigma=1)
n |
length of the simulated series. |
H |
a numeric value within 0 and 1 denoting the Hurst exponent. This describes the persistence (i.e., level of linear auto-correlation). Above 0.5 is persistent, below 0.5 is anti-persistent. |
mu |
mean value of the series. |
sigma |
standard deviation of the series. |
Returns a series of simulated fractal Gaussian noise.
Translated from Matlab into R. Original Matlab code by B. Scott Jackson.
Wolfgang Schadner
Mandelbrot, B. B., Fisher, A. J., & Calvet, L. E. (1997). A multifractal model of asset returns.
mfsim
, mfdfa
x <- ffGn(H=0.8) # fractal Brownian motion: B <- cumsum(x) plot(B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.