logl function

General method to compute log-likelihood for ghype models.