Why do we have to generate a uniformly distributed random number in [0,1) and use it to get a random number from a target distribution f(x)? Why not just build a library for the common distributions say binomial, geometric distribution and as such, so we could just look up and get as many random numbers as we want from the library?
Aucun commentaire:
Enregistrer un commentaire