phom.dist {TDAstats}R Documentation

Calculate Distance between Homology Matrices

Description

Calculates the distance between two matrices containing persistent homology features, usually as returned by the 'calculate_homology' function.

Usage

phom.dist(phom1, phom2, limit.num = 0)

Arguments

phom1

3-by-n numeric matrix containing persistent homology for first dataset

phom2

3-by-n numeric matrix containing persistent homology for second dataset

limit.num

limit comparison to only top 'limit.num' features in each dimension

Details

Note that the absolute value of this measure of distance is not meaningful without a null distribution or at least another value for relative comparison (e.g. finding most similar pair within a triplet).

Value

distance vector (1 element per dimension) between 'phom1' and 'phom2'


[Package TDAstats version 0.4.1 Index]