mardi 17 mars 2015

How to simulate from an (arbitrary) continuous probability distribution?

I have a probability density function like this:



def p1(x):
return ( sin(x) ** (-0.75) ) / (4.32141 * (x ** (1/5)))


I want to denerate random value on [0; 1] with this pdf. How can I do random value?


Aucun commentaire:

Enregistrer un commentaire