powered by
This function randomy initializes the segmentation.
initialization(K, n)
A vector of length n containing a factor with K levels (from 1 to K) drawn with replacement.
The number of segments to start with (maximum number of segments there'll be in the end).
The number of observations to draw.
Adrien Ehrhardt