choose_kmax: Finding best segmentation with a different threshold S

Description Usage Arguments Value Examples

View source: R/choose_Kmax.R

Description

Choosing optimal number of segment using Marc Lavielle's method. From Emilie Lebarbier. Method based on identifying breaks in the slope of the contrast.

Usage

1
choose_kmax(x, S = 0.75)

Arguments

x

segmentation-class object

S

threshold for choosing the number of segment. See adehabitatLT::chooseseg

Value

the optimal number of segment given threshold S.

Examples

1
2
3
4
5
6
7
## 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)

segclust2d documentation built on Oct. 11, 2021, 9:10 a.m.