1 #' A function needed in initSmallEM
3 #' @param X vector with integer values
6 #' @return a list with Z (a binary vector of size the size of X) and indices where Z is equal to 1
7 vec_bin = function(X,r)
12 for (i in 1:length(X))
22 return (list(Z=Z,indice=indice))