Update to conform to CRAN rules (unfinished)
[valse.git] / pkg / R / initSmallEM.R
index 487a4e1..cf31c63 100644 (file)
@@ -1,3 +1,5 @@
+#' initSmallEM
+#'
 #' initialization of the EM algorithm
 #'
 #' @param k number of components
@@ -8,6 +10,7 @@
 #' @return a list with phiInit, rhoInit, piInit, gamInit
 #'
 #' @importFrom stats cutree dist hclust runif
+#'
 #' @export
 initSmallEM <- function(k, X, Y, fast)
 {
@@ -77,5 +80,5 @@ initSmallEM <- function(k, X, Y, fast)
   piInit <- piInit1[b, ]
   gamInit <- gamInit1[, , b]
 
-  return(list(phiInit = phiInit, rhoInit = rhoInit, piInit = piInit, gamInit = gamInit))
+  list(phiInit = phiInit, rhoInit = rhoInit, piInit = piInit, gamInit = gamInit)
 }