Uniform distribution command for specific mean and standard deviation
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
karthik reddy
am 5 Feb. 2019
Beantwortet: karthik reddy
am 7 Feb. 2019
can we calculate Gaussian and uniform distribution with specific mean and standard deviations(s.d)
for Gaussian there is a MATLAB command
s.d.*randn(N,1)+mean
similarly is there any command for uniform distribution
0 Kommentare
Akzeptierte Antwort
Torsten
am 5 Feb. 2019
(mean-sqrt(12)/2*s.d.) + sqrt(12)*s.d.*rand(N,1)
is uniformly distributed on
[a:b] = [m-sqrt(12)/2*s.d.:m+sqrt(12)/2*s.d.]
with the prescribed mean and standard deviation.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!