Learn R Programming

TDA (version 1.9.1)

summary.diagram: print and summary for diagram

Description

The function print.diagram prints a persistence diagram, a \(P\) by 3 matrix, where \(P\) is the number of points in the diagram. The first column contains the dimension of each feature (0 for components, 1 for loops, 2 for voids, etc.). Second and third columns are Birth and Death of the features.

The function summary.diagram produces basic summaries of a persistence diagrams.

Usage

# S3 method for diagram
print(x, ...)
# S3 method for diagram
summary(object, ...)

Arguments

x

an object of class diagram

object

an object of class diagram

...

additional arguments affecting the summary produced.

Author

Fabrizio Lecci

See Also

plot.diagram, alphaComplexDiag, alphaComplexDiag, gridDiag, ripsDiag

Examples

Run this code
# Generate data from 2 circles
XX1 <- circleUnif(30)
XX2 <- circleUnif(30, r = 2) + 3
XX <- rbind(XX1, XX2)

DiagLim <- 5         # limit of the filtration
maxdimension <- 1    # computes betti0 and betti1

Diag <- ripsDiag(XX, maxdimension, DiagLim, printProgress = TRUE)

print(Diag[["diagram"]])
print(summary(Diag[["diagram"]]))

Run the code above in your browser using DataLab