Create a two-point distribution?
Mostra commenti meno recenti
I want to multiply each element of a vector by a random variable X that takes values +1 and -1 with probability 1/2. How do I create this random variable?
Risposte (1)
dk
il 17 Ott 2019
1 voto
N=100;
x=sign(rand(N,1)-0.5);
1 Commento
kevin cecere palazzo
il 17 Ott 2019
Categorie
Scopri di più su Inverse Gaussian Distribution in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!