disentangle: Disentangling Rips Diagrams From Their Initial Data Coordinates
Description
The ripsDiag function in the TDA package produces
very different results depending on whether you invoke it on a data
matrix (expressed in terms of specific data coordinates) or a distance
matrix (expressed as abstract indices). This function converts the
specific coordinates into indices, allowing one to more easily plot
different views of the data structures.
Usage
disentangle(rips, dataset, digits = 6)
Value
Returns a Rips diagram nearly identical to the one that would be
produced if the ripsDiag function had been invoked instead on
the Euclidean distance matrix.
Arguments
rips
A Rips diagram produced from a data matrix using
the TDA package.
dataset
The original dataset used to create the rips object.
digits
The number of digits to use when matching values.
Author
Kevin R. Coombes <krc@silicovore.com>
Details
The core algorithm is, quite simply, to recombine the coordinates of a
point in the Rips diagram in a manner consistent with their storage in
the original data set, and find the index (i.e., row number) of that
point.