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 Oct. 6, 2019, 5:05 p.m.