R/init_lambda.R

Defines functions init_lambda

Documented in init_lambda

#' Initialize the vector lambda of mixture proportion
#' @param K A numeric value corresponding to the number of cluster
#' @return result A numeric vector of length K 
#' @examples 
#' init_lambda(K=3)
#' @export 
init_lambda <-
function(K) {
  result<-rep(1/K, K)
  return(result)
}

Try the binomialMix package in your browser

Any scripts or data that you put into this service are public.

binomialMix documentation built on March 23, 2020, 5:09 p.m.