View source: R/simTSrestingstate.R
simTSrestingstate | R Documentation |
Synthesizes a single time series x representing resting state activity. The fluctuation frequencies f are limited to a square passband 0.01 Hz <= f <= 0.1 Hz. TR is the repetition time (needed to compute the passband limits), expressed in seconds. N is the required number of samples (needs not be a power of 2).
simTSrestingstate(nscan, base=0, TR, SNR=NULL, noise = c("none", "white",
"temporal", "low-frequency", "physiological", "mixture"),
type = c("gaussian", "rician"), weights, verbose = TRUE, rho = 0.2,
freq.low = 128, freq.heart = 1.17, freq.resp = 0.2, vee=1)
nscan |
Number of scans. |
base |
Baseline value of the time series. |
TR |
Repetition time in seconds. |
SNR |
Signal-to-noise ratio of the time series. |
noise |
Type of noise (white is default). |
type |
If |
weights |
If |
verbose |
Logical indicating if warnings should be returned. |
rho |
If |
freq.low |
If |
freq.heart |
If |
freq.resp |
If |
vee |
If |
A vector representing the resting state time series
J. Durnez, G. Verdoolaege, M. Welvaert
[1] C.G. Fox, Computers & Geoscience, Vol. 13, pp. 369-374, 1987.
[2] M. Fukunaga, Magnetic Resonance Imaging, Vol. 24, pp. 979-992, 2006.
simTSfmri
out <- simTSrestingstate(nscan=50, TR=2, SNR=1, noise="none")
plot(out, type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.