computeNNmatrix: Compute nearest neighbour matrix for TFCE.

View source: R/computeNNmatrix.R

computeNNmatrixR Documentation

Compute nearest neighbour matrix for TFCE.

Description

Given a Tx3 matrix (T = number of triangles in the triangular mesh) containing vertices IDs of each triangle, this function computes a Ex2 matrix containing the mesh edges (E = numbr of edges). To each mesh corresponds a unique NNmatrix, which is exploited by TFCE function to compute TFCE scores. In order to speed up TFCE execution time, repetitions like (A,B) and (B,A) are avoided.

Usage

computeNNmatrix(triangles)

Arguments

triangles

a Tx3 matrix (T = number of triangles in the triangular mesh) containing vertices IDs of each triangle.

Value

A Ex2 matrix containing the mesh edges (E = numbr of edges)

Examples

NNmatrix <- computeNNmatrix(triangles)

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