R/get_cluster_purity.R

Defines functions get_cluster_purity

get_cluster_purity <-
function(theoretical, estimated)
  return(1-mean(unlist(lapply(unique(theoretical), function(x){cal_entropy(estimated[theoretical == x])})), na.rm = TRUE))

Try the yaConsensus package in your browser

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

yaConsensus documentation built on April 3, 2025, 10:12 p.m.