R/clusf.R

Defines functions clusf

Documented in clusf

#' Random clustering generation
#'@description Internal function for CICA package
#' @param nBlocks integer: number of objects
#' @param nClus integer: number of clusters
#'
#'
#'
#' @keywords internal
#' @return a numeric vector indicating the clustering

clusf <- function(nBlocks, nClus) {
  #simplyfied cluster generation function using an equal probability
  clus <- GenerateRandomClustering(nBlocks, nClus, rep(c(1 / nClus), nClus))
  return(clus)
}

Try the CICA package in your browser

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

CICA documentation built on Sept. 11, 2024, 6:33 p.m.