Description Usage Arguments Value Examples
View source: R/summaries_norm.R
Given a functional summary Λ (t), compute the p-norm.
1 | fsnorm(fsobj, p = 2)
|
fsobj |
a functional summary object. |
p |
an exponent in [1,∞) (default: 2). |
an L_p-norm value.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Generate Toy Data from 'gen2circles()'
dat = gen2circles(n=100)$data
## Compute PD, Landscapes, and Silhouettes
myPD = diagRips(dat, maxdim=1)
myPL0 = diag2landscape(myPD, dimension=0)
myPL1 = diag2landscape(myPD, dimension=1)
myPS0 = diag2silhouette(myPD, dimension=0)
myPS1 = diag2silhouette(myPD, dimension=1)
## Compute 2-norm
fsnorm(myPL0, p=2)
fsnorm(myPL1, p=2)
fsnorm(myPS0, p=2)
fsnorm(myPS1, p=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.