choose_kmax | R Documentation |
Choosing optimal number of segment using Marc Lavielle's method. From Emilie Lebarbier. Method based on identifying breaks in the slope of the contrast.
choose_kmax(x, S = 0.75)
x |
|
S |
threshold for choosing the number of segment. See adehabitatLT::chooseseg |
the optimal number of segment given threshold S.
## Not run:
res.seg <- segmentation(df, coord.names = c("x","y"), Kmax = 30, lmin = 10)
# find the optimal number of segment according to Lavielle's criterium with a
# different threshold.
choose_kmax(res.seg, S = 0.60)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.