polymorphic gamma logPDF