Moved to homegrown norm_logpdf because low-version-number scipy lack norm.logpdf.