View source: R/SimulatePowerlawSignalPair.R
SimulatePowerlawSignalPair | R Documentation |
The timeseries have an expected variance of 1 and an expected correlation of r
SimulatePowerlawSignalPair(n, beta.signal, beta.noise, r)
r |
expected correlation between both vectors |
N |
Number of points per timeseries |
betaSignal |
powerlaw slope of the signal |
betaNoise |
powerlaw slope of the noise |
list containing both vectors y1 and y2
Thomas Laepple
mean(replicate(1000,{test <- SimulatePowerlawSignalPair(200,1,1,0.5);cor(test$y1,test$y2)}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.