Description
Calculates the cost.
Usage
cost_func(dat, clus, mu, designmat)
Arguments
clus
A vector of predicted cell types.
mu
Parameter estimates from update_mu.
designmat
An indicator variable matrix records specified marker genes of each cell type.