| Author |
Comment/Response |
yehuda ben-shimol
|
09/23/07 11:57am
e^x^7 IS NOT a PDF since the area (integral) under that function need to be 1 (probability, isn't it?).
Anyway, there are several ways of generating random values from an arbitrary PDF, and the one that suits your case (assume that it will be a PDF) need to use inverse functions and CDF
if y is the CDF, which has a known inverse function
y=CDF(x)
that is
x = f(y)
where f is the inverse function of the CDF
then
f(z)
returns a random point according to the PDF tyou want,
where
z~Uniform(0,1)
yehuda
URL: , |
|