make_mesh_2D: Make 2D INLA mesh

View source: R/make_mesh.R

make_mesh_2DR Documentation

Make 2D INLA mesh

Description

Create INLA mesh and observation weight matrix based on a binary brain mask

Usage

make_mesh_2D(mask)

Arguments

mask

Brain mask (matrix of 0 and 1 or TRUE and FALSE).

Details

This function requires the INLA package, which is not a CRAN package. See https://www.r-inla.org/download-install for easy installation instructions.

Value

List containing INLA mesh, observation weight matrix A for translating between mesh locations and original data locations, the brain mask used to create the mesh, and the number of original and mesh data locations.


templateICAr documentation built on June 22, 2024, 11:45 a.m.