ported probability density functions. references #29