Generic function of calculating the first moment of components of the mixture
comp_mean(m)
m
it returns a vector of means.
Useful links