[Scilab-users] {EXT} create random values between [-1,1]

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Fri Jun 10 15:38:15 CEST 2016


Hello,

> De la part de Carrico, Paul
> À : International users mailing list for Scilab. (users at lists.scilab.org) <users at lists.scilab.org>
>
>In order to simulate dimensional tolerances in +/-,
> I'm using the following workaround :
> n = 100;
> a = rand(n,1) - rand(n,1);

AFAIK, the sum of two random values following a normal distribution is a normal distribution,
The variance being sqrt(s1 + s2).

https://fr.wikipedia.org/wiki/Fonction_gaussienne#Propri.C3.A9t.C3.A9s_des_fonctions_gaussiennes
https://en.wikipedia.org/wiki/Gaussian_function#Properties

HTH

--
Christophe Dang Ngoc Chan
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