Description Usage Arguments Value Author(s)

View source: R/initialization.R

This function randomy initializes the segmentation.

1 | ```
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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.