Rewrite the PDF sampling
Currently, the PDF sampling code is kind of a mess. When #231 (closed) and #232 (closed) are merged into the protected rewriting branch, this can be tackled by rewriting the PDF code and get rid of unused and doubled code.
Currently, the PDF sampling code is kind of a mess. When #231 (closed) and #232 (closed) are merged into the protected rewriting branch, this can be tackled by rewriting the PDF code and get rid of unused and doubled code.