extract_pdf function

Extract probability density function from vector of samples