disentangle | R Documentation |
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.
disentangle(rips, dataset)
rips |
A Rips |
dataset |
The original dataset used to create the |
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.
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.
Kevin R. Coombes <krc@silicovore.com>
data(cytof)
fixed <- disentangle(Arip, AML10.node287)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.