PHom | R Documentation |
PHom() creates instances of PHom
objects, which are convenient containers
for persistence data. Generally, data frame (or similar) objects are used
to create PHom
instances with users specifying which columns contain
dimension, birth, and death details for each feature.
PHom(x, dim_col = 1, birth_col = 2, death_col = 3)
x |
object used to create |
dim_col |
either |
birth_col |
either |
death_col |
either |
PHom
instance
# construct data frame with valid persistence data
df <- data.frame(dimension = c(0, 0, 1, 1, 1, 2),
birth = rnorm(6),
death = rnorm(6, mean = 15))
# create `PHom` instance and print
df_phom <- PHom(df)
df_phom
# print feature details to confirm accuracy
print.data.frame(df_phom)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.