Learn R Programming

TDA (version 1.0)

summary.diagram: print and summary for diagram

Description

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.

summary.diagram produces basic summaries of a persistence diagrams.

Usage

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

Arguments

x
an object of class diagram
object
an object of class diagram
...
additional arguments affecting the summary produced.

See Also

plot.diagram, 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, printStatus=TRUE)

print(Diag)
print(summary(Diag))

Run the code above in your browser using DataLab