Calculates the distance between two matrices containing persistent homology features, usually as returned by the `calculate_homology` function.
phom.dist(phom1, phom2, limit.num = 0)
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 |
distance vector (1 element per dimension) between `phom1` and `phom2`
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).