mBm_mGn | R Documentation |
Simulate multifractional Brownian motion and multifractional Gaussian noise.
mBm_mGn(N, Ht)
N |
The length of sample time series to simulate. |
Ht |
The N by 1 vector of the time evolving H(t). |
This is an algorithm that simulates discrete time multifractional Brownian motion and multifractional Gaussian noise, which can useful for testing various functions within the 'fractalRegression' package. H(t) should take on any values between 0 and 1. It is meant to capture time varying fractal properties. The example code given below shows a slow evolving Hurst exponent involving a sinusoidal change.
The object returned from the function includes:
mBm: multifractional Brownian motion
mGn: multifractional Gaussian noise
t <- 1:1024
Ht <- 0.5+0.5*(sin(0.0025*pi*t))
sim <- mBm_mGn(1024,Ht)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.