Convolution of two different pdf (uniform and normal distribution)

20 ビュー (過去 30 日間)
MINA WOO
MINA WOO 2019 年 11 月 22 日
回答済み: Jeff Miller 2019 年 11 月 22 日
I want to calculate the pdf for convolution of uniform(x~u(a,b)) and normal distributions(y~N(m,sigma^2)).
How can I get the convolution pdf usgin MATLAB code?

採用された回答

Jeff Miller
Jeff Miller 2019 年 11 月 22 日
The Cupid toolbox will do this. For example,
u = Uniform(0,100);
n = Normal(100,10); % 2nd parameter is sigma, not sigma^2
c = Convolution(u,n);
c.PlotDens; % See attached
somePDFvals = c.PDF(80:220);

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by