getLogGPrior: Helper function for glmBayesMfp: Returns the normalized log g prior density
Description
Returns the normalized log of the prior density on g as an R function.
It is checked that the result is valid, that is that exp(f) integrates to 1 over the
positive real line.