fsnorm {TDAkit} | R Documentation |
L_p
Norm of a Single Functional Summary
Description
Given a functional summary \Lambda (t)
, compute the p
-norm.
Usage
fsnorm(fsobj, p = 2)
Arguments
fsobj |
a functional summary object. |
p |
an exponent in |
Value
an L_p
-norm value.
Examples
## 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)
[Package TDAkit version 0.1.2 Index]