Create Label Tables and Indicator Vectors for Morse-Smale Complex Critical Points
Source:R/graph_MS_cx.R
create.lmin.lmax.label.indicators.RdCreates label tables and indicator vectors for local minima and maxima in a Morse-Smale complex. The label tables map point IDs to their corresponding labels, while indicator vectors mark the presence/absence of critical points in the state space.
Value
A list with four components:
- lmin.lab.tbl
Named character vector mapping point IDs to local minima labels
- lmax.lab.tbl
Named character vector mapping point IDs to local maxima labels
- lmin.ind
Numeric vector indicating local minima (1) and non-minima (0)
- lmax.ind
Numeric vector indicating local maxima (1) and non-maxima (0)
Details
The function processes both local minima and maxima labels to create:
Label tables that map point IDs to their corresponding labels
Binary indicator vectors marking the presence (1) or absence (0) of critical points All vectors maintain the same length as the number of rows in state.space and use consistent naming.