R/popsim1d.R
logpost_multiclass_.RdCalculate the log-posterior for a 1-d multi-class population
logpost_multiclass_(N, n, Y, y, lprior)the population size
the sample size
a vector indicating the amount of each class in the population.
a vector indicating the amount of each class in the sample.
function uses to calculate the log-prior