Let's say I've got a probability distribution histogram represented as a hash:
{apples=>4,oranges=>19,pairs=>10,peaches=>5}What is the best way to simulate random sampling of that histogram? I looked around CPAN for Monte Carlo methods and the only distributions I found supported were math-based such as Math::GSL::Randist -- not data-based.
In reply to Sampling From a Histogram Distribution by jabowery
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |