Calculate the log-posterior of a 1-d binary population (quickly)

logpost_binary_fast(pop, obs, lprior, a, b, ...)

Arguments

pop

numeric vector representing the population

obs

numeric vector representing the observed sample

lprior

function uses to calculate the log-prior

a

fix later

b

fix later

...

other arguments, passed to the lprior function