calculateMarginalLogLikelihood function

Calculates the marginal log-likelihood for a set of parameters