generate random number GG distribution in matlab

I want to know how to generate random samples set obeying a zero-mean unity-variance Generalized Gaussian density from the standard random generator. Thank you in advance.

回答 (1 件)

bym
bym 2012 年 4 月 21 日

0 投票

r = randn(100,1) % 100 samples

1 件のコメント

Sunny Kumar
Sunny Kumar 2012 年 4 月 22 日
r = randn(100,1), This will generate random numbers which is normally distributed. But, I want generate in random numbers with μ = 0 and σ = 1, in case of generalised Gaussian density with parameters p(x;μ,υ,σ), whose pdf is given by
p(x;μ,υ,σ)= (υ*η(υ,σ))/(2Γ(1/υ))*exp{ -[η(υ,σ)*|x-μ| ]^υ }
and η(υ,σ)= 1/σ*[(Γ(3/υ))/(Γ(1/υ))]^(1/2)

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeRandom Number Generation についてさらに検索

質問済み:

2012 年 4 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by