pw_smooth {BayesfMRI}R Documentation

Smooth AR coefficients and white noise variance

Description

Smooth AR coefficients and white noise variance

Usage

pw_smooth(vertices, faces, mask = NULL, AR, var, FWHM = 5)

Arguments

vertices

A V \times 3 matrix, where each row contains the Euclidean coordinates at which a given vertex in the mesh is located. V is the number of vertices in the mesh

faces

An F \times 3 matrix, where each row contains the vertex indices for a given triangular face in the mesh. F is the number of faces in the mesh.

mask

A logical vector indicating, for each vertex, whether to include it in smoothing. NULL (default) will use a vector of all TRUE, meaning that no vertex is masked out; all are used for smoothing.

AR

A Vxp matrix of estimated AR coefficients, where V is the number of vertices and p is the AR model order

var

A vector length V containing the white noise variance estimates from the AR model

FWHM

FWHM parameter for smoothing. Remember that \sigma = \frac{FWHM}{2*sqrt(2*log(2)}. Set to 0 or NULL to not do any smoothing. Default: 5.#'

Value

Smoothed AR coefficients and residual variance at every vertex


[Package BayesfMRI version 0.3.11 Index]