| ppd | R Documentation |
This computes the peak persistence diagram over a range of lambda. This can help determine the proper elasticity (penalty). This can be slow and recommended to run in parallel
ppd(
f,
time,
max_lam = 2,
num_lam = 10,
pt = 0.15,
penalty_method = c("roughness", "geodesic", "norm"),
centroid_type = c("mean", "median"),
center_warpings = TRUE,
smooth_data = FALSE,
sparam = 25L,
parallel = TRUE,
cores = -1,
optim_method = c("DP", "DPo", "DP2", "RBFGS"),
max_iter = 20L
)
f |
A numeric matrix of shape |
time |
A numeric vector of length |
max_lam |
maximum value of lambda. Defaults to |
num_lam |
number of steps. Defaults to |
pt |
the percentile of negative curvature of raw data Defaults to |
penalty_method |
A string specifying the penalty term used in the
formulation of the cost function to minimize for alignment. Choices are
|
centroid_type |
A string specifying the type of centroid to align to.
Choices are |
center_warpings |
A boolean specifying whether to center the estimated
warping functions. Defaults to |
smooth_data |
A boolean specifying whether to smooth curves using a box
filter. Defaults to |
sparam |
An integer value specifying the number of times to apply the
box filter. Defaults to |
parallel |
A boolean specifying whether to run calculations in parallel.
Defaults to |
cores |
number of cores in parallel (default=-1, means all cores) |
optim_method |
A string specifying the algorithm used for optimization.
Choices are |
max_iter |
An integer value specifying the maximum number of iterations.
Defaults to |
lam_opt optimal lam
Kim, Woo Min, Sutanoy Dasgupta, and Anuj Srivastava. "Peak-persistence diagrams for estimating shapes and functions from noisy data." arXiv preprint arXiv:2305.04826 (2023).
## Not run:
out <- ppd(simu_data$f, simu_data$time)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.