GaussSmoothKernel: Calculates a discrete Gaussian smoothing kernel (adopted from...

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

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.

Value

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

Author(s)

J. L. Marchini

See Also

Sim.3D.GRF

Examples

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


Search within the neuRosim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.