simprepSpatial: Prepare spatial structure of the data

View source: R/simprepSpatial.R

simprepSpatialR Documentation

Prepare spatial structure of the data

Description

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

Usage

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

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


neuRosim documentation built on Oct. 18, 2023, 5:09 p.m.