Uniform distribution command for specific mean and standard deviation

8 ビュー (過去 30 日間)
karthik reddy
karthik reddy 2019 年 2 月 5 日
回答済み: karthik reddy 2019 年 2 月 7 日
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

採用された回答

Torsten
Torsten 2019 年 2 月 5 日
(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.

その他の回答 (1 件)

karthik reddy
karthik reddy 2019 年 2 月 7 日
Thank you Torsten

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by