haskell / mwc-random

A very fast Haskell library for generating high quality pseudo-random numbers.
http://hackage.haskell.org/package/mwc-random
BSD 2-Clause "Simplified" License
55 stars 25 forks source link

Log version of `categorical` #57

Closed nanonaren closed 7 years ago

nanonaren commented 7 years ago

This would be very convenient to have since lots of useful cases of categorical sampling happens with very small weights thus needing values in the log-domain.

Shimuuar commented 7 years ago

Thank you! Merged. I'll upload updated version on hackage soon