haskell-numerics / random-fu

A suite of Haskell libraries for representing, manipulating, and sampling random variables
42 stars 21 forks source link

Fixed logBetaPdf to produce log 0 instead of 0 when outside of [0,1] #34

Closed adscib closed 8 years ago

idontgetoutmuch commented 8 years ago

Why log 0 (== -Infinity) rather than NaN? I suppose the rationale is that the pdf is 0 outside of [0,1] so the log pdf should be log 0.0.