powered by
Generates an autoregressive noise dataset with specified dimensions and standard deviation.
temporalnoise(dim, nscan, sigma, rho = 0.2, template, verbose = TRUE)
An array containing the noise with dimensions specified in dim.
A vector specifying the dimensions of a 2D or 3D array.
The number of scans in the dataset.
The standard deviation of the noise.
The autocorrelation coefficients. The length of the vector determines the order of the autoregressive model.
An array representing the anatomical structure or mask with dimensions equal to dim.
Logical indicating if warnings should be printed.
J. Durnez, B. Moerkerke, M. Welvaert
systemnoise, lowfreqdrift, physnoise, tasknoise, spatialnoise
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) rm(d,sigma,nscan,rho,out)
Run the code above in your browser using DataLab