Learn R Programming

MapperAlgo (version 1.0.9)

MapperAlgo: Mapper Algorithm

Description

Implements the Mapper algorithm for Topological Data Analysis (TDA). It divides data into intervals, applies clustering within each interval, and constructs a simplicial complex representing the structure of the data.

Usage

MapperAlgo(
  original_data,
  filter_values,
  percent_overlap,
  methods,
  method_params = list(),
  cover_type = "extension",
  intervals = NULL,
  interval_width = NULL,
  num_cores = 1
)

Value

A list containing the Mapper graph components:

adjacency

The adjacency matrix of the Mapper graph.

num_vertices

The number of vertices in the Mapper graph.

level_of_vertex

A vector specifying the level of each vertex.

points_in_vertex

A list of the indices of the points in each vertex.

points_in_level_set

A list of the indices of the points in each level set.

vertices_in_level_set

A list of the indices of the vertices in each level set.

Arguments

original_data

Original dataframe, not the filter values.

filter_values

A data frame or matrix of the data to be analyzed.

percent_overlap

Percentage of overlap between consecutive intervals.

methods

Specify the clustering method to be used, e.g., "hclust" or "kmeans".

method_params

A list of parameters for the clustering method.

cover_type

Type of interval, either 'stride' or 'extension'.

intervals

An integer specifying the number of intervals.

interval_width

The width of each interval.

num_cores

Number of cores to use for parallel computing.