probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

Bayesian_statistics/postDensityIntervals has no HPD optimisation algorithm #116

Open aoboturov opened 8 years ago

aoboturov commented 8 years ago

I was looking at postDensityIntervals, there seems to be no algorithm for finding HPD for the case of a disjoint interval. HPD for a continuous interval seems to be already a complex numerical issue, because it requires one-dimensional optimisation. For the disjoint interval case it seems to be even harder. Do you know any solutions or workarounds?