Refactored pdf/cdf 1d methods