initialization: Random initialization of the segmentation

Description Usage Arguments Value Author(s)

View source: R/initialization.R

Description

This function randomy initializes the segmentation.

Usage

1

Arguments

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.

Value

A vector of length n containing a factor with K levels (from 1 to K) drawn with replacement.

Author(s)

Adrien Ehrhardt


glmtree documentation built on Jan. 13, 2021, 4:58 p.m.