Learn R Programming

neuRosim (version 0.2-14)

GaussSmoothKernel: Calculates a discrete Gaussian smoothing kernel (adopted from AnalyzeFMRI)

Description

Calculates a simple, discrete Gaussian smoothing kernel of a specifice size given the covariance matrix of the Gaussian.

Usage

GaussSmoothKernel(voxdim=c(1,1,1), ksize=5, sigma=diag(3,3))

Value

An array of dimension (ksize,ksize,ksize) containing the smoothing kernel.

Arguments

voxdim

The dimensions of each voxel.

ksize

The size (in voxels) of the kernel with which to filter the independent field.

sigma

The covariance matrix of the Gaussian kernel.

Author

J. L. Marchini

See Also

Sim.3D.GRF

Examples

Run this code
a <- GaussSmoothKernel(voxdim=c(1,1,1), ksize=5, sigma=diag(1,3))
rm(a)

Run the code above in your browser using DataLab