maxClusterArea: Compute the largest cluster area in a statistical map.

View source: R/maxClusterArea.R

maxClusterAreaR Documentation

Compute the largest cluster area in a statistical map.

Description

Given a statistical map on a 3D mesh and cluster-forming threshold firsThr this function computes the largest cluster area in the statistical map.

Usage

maxClusterArea(h, A, NNmatrix, firsThr = 1)

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.

firsThr

The cluster-forming threshold.

Value

The largest cluster area.

Examples

maxArea = maxClusterArea(h, A, NNmatrix)
maxArea = maxClusterArea(h, A, NNmatrix, firsThr=2)

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