[Scilab-users] {EXT} Re: Can you suggest a more efficient procedure for generating random variables?

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Tue Mar 19 09:04:11 CET 2019


Hello,

> De Federico Miyara
> Envoyé : lundi 18 mars 2019 19:24
>
> As you don't know the inverse for any value different from the tabulated
> ones, you just interpolate:
>
> x1 = interp(y, x, y1);

If you considere that the probability distribution function is continuous,
yes, that's a very good solution.
But there might be some cases where you have to stick to a discrete PDF.

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

Public
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



More information about the users mailing list