Skip to contents

Constructs complete Morse-Smale complex from grid function values.

Usage

create.morse.smale.complex(f.grid)

Arguments

f.grid

Matrix of function values

Value

S3 object of class "morse.smale.complex" with components:

cell_lookup

List mapping cell IDs to point coordinates

cell_summary

Data frame summarizing each cell

local_maxima

Matrix of local maximum coordinates

local_minima

Matrix of local minimum coordinates

find_cell

Function to find cell ID for a grid point

get_neighboring_cells

Function to find neighboring cells

Examples

if (FALSE) { # \dontrun{
grid <- create.grid(30)
f <- function(x, y) sin(3*x) * cos(3*y)
f.grid <- evaluate.function.on.grid(f, grid)
complex <- create.morse.smale.complex(f.grid)
str(complex)
} # }