physnoise | R Documentation |
Generates a physiological noise dataset with specified dimensions and standard deviation. The physiological noise is defined as noise caused by heart beat and respiratory rate.
physnoise(dim, nscan, TR, sigma, freq.heart = 1.17,
freq.resp = 0.2, template, verbose = TRUE)
dim |
A vector specifying the dimensions of the image. |
nscan |
The number of scans in the dataset. |
TR |
The repetition time in seconds. |
sigma |
The standard deviation of the noise. |
freq.heart |
The frequency in Hz of the heart beat. |
freq.resp |
The frequency in Hz of the respiratory rate. |
template |
An array representing the anatomical structure or mask with dimensions equal to dim. |
verbose |
Logical indicating if warnings should be printed. |
The function generates physiological noise. Heart beat and respiratory rate are defined as sine and cosine functions with specified frequencies. Additional Gaussian noise creates variability over voxels. The result is a noise dataset with specified dimensions and desired standard deviation.
An array containing the noise with dimensions specified in dim and nscan.
M. Welvaert
temporalnoise
, lowfreqdrift
, systemnoise
, tasknoise
, spatialnoise
d <- c(10,10,10)
sigma <- 5
nscan <- 100
TR <- 2
out <- physnoise(d, nscan, TR, sigma, verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.