Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate random numbers with a known distribution of f(X)=(8X^2 + 1)*Exp( -X^2 )

Dear All,

 

I need to simulate a random number generator which can generate numbers X with the probability distribution of 

 f (X) = ( 8X^2 + 1)*Exp ( -X^2 ).

 

This distribution is not a common distribution.

I have searched a lot, but I still do not know how to realize it.

 

Any help on this topic would be highly appreciated.

0 Kudos
Message 1 of 2
(5,840 Views)

Make a lookup table of the integral of your function (normalized to 1)

Use the rectangle random generator and pipe that value through the lookup table, scale it ... voila.

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 2
(5,794 Views)