image thumbnail

updated 5 years ago

Sampling from a discrete distribution by Dahua Lin

The function is to draw samples from an arbitrary discrete distribution. (monte carlo, simulation, sampling)

discretesample(p, n)

Contact us