Check whether argument 'nseg' was provided. If not, propose default value based on Lavielle's criterium

argcheck_segmentation(nseg, Kopt.lavielle)

Arguments

nseg

number of segment

Kopt.lavielle

optimal number of segment selected with Lavielle's criterium

Value

an integer