init_class:

Usage Arguments Examples

View source: R/init_class.R

Usage

1

Arguments

data
k

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (data, k) 
{
    p <- vector("list", 1)
    p[[1]][1:k] <- (1/k)
    return(sample(k, nrow(data), replace = TRUE, prob = unlist(p)))
  }

SaraTouzani/EM documentation built on Dec. 16, 2019, 12:31 a.m.