Calculate the log-likelihood for a 1-d multi-class population

loglik_multiclass_(n, Y, y)

Arguments

n

the sample size.

Y

a vector indicating the amount of each class in the population.

y

a vector indicating the amount of each class in the sample.