Generic function of calculating the component densities of the mixture
comp_dens(m, y, log = FALSE)
m
: mixture of k components generated by normalmix() or unimix() or igmix()y
: is an n-vector of locationlog
: whether to use log-scale on densitiesA k by n matrix of densities