Bugfix: Corrected formula for computing pdf of a dataset. Fixes #42