Choosing optimal number of segment using Marc Lavielle's method. From Emilie Lebarbier. Method based on identifying breaks in the slope of the contrast.
chooseseg_lavielle(J, S = 0.75, ...)
a list with optimal number of segment and full data.frame of the calculus
likelihood for each number of segment
threshold for choosing the number of segment. See adehabitatLT::chooseseg
additional arguments