TFCE: Compute TFCE on a ventricular mesh.

View source: R/TFCE.R

TFCER Documentation

Compute TFCE on a ventricular mesh.

Description

Given a statistical map on a 3D mesh this function computed the related TFCE map. The 3D mesh is described as a graph using a two-columns matrix the mesh edges, each row containing the vertex ID of a edge.

Usage

TFCE(h, A, NNmatrix, E = 0.5, H = 2, deltah = 0.01)

Arguments

h

A V-dimensional vector (V = number of vertices in the ventricular mesh) containing the values of a statistic at each vertex in the mesh.

A

A V-dimensional vector containing the area associated with a vertex, usually its Voronoi area.

NNmatrix

A Nx2 matrix containing the mesh edges. Important: to speed up the execution please avoid repetitions ofthe form (A,B) and (B,A) in the matrix.

E

TFCE parameter, by default fixed to 0.5.

H

TFCE parameter, by default fixed to 2.

deltah

discrete integral sampling dimension, by default fixed to 2.

Value

A V-dimensional vector containig the TFCE score computed at each vertex.

Examples

TFCEscores = TFCE(h, A, NNmatrix) #run with default TFCE parameters.
TFCEscores = TFCE(h, A, NNmatrix, deltah=0.02) #change discrete integral sampling.
TFCEscores = TFCE(h, A, NNmatrix, E=1, H=1, deltah=0.02) #user default TFCE parameters.

UK-Digital-Heart-Project/mutools3D documentation built on April 7, 2024, 8:04 a.m.