simprepSpatial: Prepare spatial structure of the data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/simprepSpatial.R

Description

Prepare a list defining the necessary parameters to specify the spatial structure of the activation data.

Usage

1
2
simprepSpatial(regions, coord, radius = NULL, 
	form = c("cube", "sphere", "manual"), fading = 0)

Arguments

regions

Number of activated regions.

coord

List of coordinates specifying the xyz-coordinates.

radius

If form=cube or sphere, the distance between the center and the edge, if form=manual, the number of voxels in each region.

form

The form of the activated regions.

fading

Decay rate between 0 and 1. 0 means no fading, while 1 results in the fastest decay.

Value

A list with the necessary arguments to be used in simVOLfmri.

Author(s)

M. Welvaert

See Also

simVOLfmri, simprepTemporal, specifyregion

Examples

1
2
3
coord <- list(c(3,3,3),c(6,6,6))
radius <- c(1,2)
out <- simprepSpatial(2, coord, radius, form="cube", fading=0.2)

NeuroStat/neuRosim documentation built on Sept. 14, 2019, 10:37 a.m.