View source: R/temporalnoise.R
temporalnoise | R Documentation |
Generates an autoregressive noise dataset with specified dimensions and standard deviation.
temporalnoise(dim, nscan, sigma, rho = 0.2, template, verbose = TRUE)
dim |
A vector specifying the dimensions of a 2D or 3D array. |
nscan |
The number of scans in the dataset. |
sigma |
The standard deviation of the noise. |
rho |
The autocorrelation coefficients. The length of the vector determines the order of the autoregressive model. |
template |
An array representing the anatomical structure or mask with dimensions equal to dim. |
verbose |
Logical indicating if warnings should be printed. |
An array containing the noise with dimensions specified in dim.
J. Durnez, B. Moerkerke, M. Welvaert
systemnoise
, lowfreqdrift
, physnoise
, tasknoise
, spatialnoise
d <- c(10,10,10)
sigma <- 5
nscan <- 100
rho <- c(0.3,-0.7)
out <- temporalnoise(d, nscan, sigma, rho, verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.