get_pmf function

Get the probability mass function of a nonparametric distribution