compute_R_inv: Compute SPDE and prior precision matrices for S

View source: R/EM_templateICA.R

compute_R_invR Documentation

Compute SPDE and prior precision matrices for S

Description

Compute SPDE matrices (F, G and GFinvG) and prior precision matrix for S

Usage

compute_R_inv(meshes, kappa, C1 = 1/(4 * pi), rm_extra = FALSE)

Arguments

meshes

NULL for spatial independence model, otherwise a list of objects of class "templateICA_mesh" containing the triangular mesh (see make_mesh) for each brain structure.

kappa

Current estimates of SPDE parameter kappa for each latent field

C1

Constant, equal to 1/(4*pi) for a 2-dimensional field with alpha=2

rm_extra

If TRUE. remove extra (non-data) vertices from the mesh for greater computational efficiency

Value

A list containing R inverse and SPDE matrices


templateICAr documentation built on Feb. 16, 2023, 8:14 p.m.