View source: R/summary.diagram.R
summary.diagram | R Documentation |
print
and summary
for diagram
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.
## S3 method for class 'diagram' print(x, ...) ## S3 method for class 'diagram' summary(object, ...)
x |
an object of class |
object |
an object of class |
... |
additional arguments affecting the summary produced. |
Fabrizio Lecci
plot.diagram
,
alphaComplexDiag
, alphaComplexDiag
, gridDiag
, ripsDiag
# 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"]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.