View source: R/initialization.R
initialization | R Documentation |
This function randomy initializes the segmentation.
initialization(K, n)
K |
The number of segments to start with (maximum number of segments there'll be in the end). |
n |
The number of observations to draw. |
A vector of length n containing a factor with K levels (from 1 to K) drawn with replacement.
Adrien Ehrhardt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.