DSPRelated.com
Forums

A simple (maybe stupid) question :)

Started by One Winged Angel February 11, 2010
Hello everybody,
Currently I have to generate random numbers with pdf like this:
pdf(x) = a*exp( -a*(x-b) )
I just wonder can I generate y with:
pdf(y) = a*exp( -a*y )
and then let:
x= y + b ?
This question might be stupid. Sorry in advance ^ ^