Convolution between two different distribution
古いコメントを表示
Hello
I want to generate C(u) in the following:
C(u)=a(-u)*b(u) {a(-u) convolution b(u)}
which a is impulsive (for example [0 0 0 0 0 1 0 0 0 0]) and b is a probability distribution (for example a Normal distribution)
Thank you
6 件のコメント
Walter Roberson
2015 年 10 月 6 日
What do you intend a(-u) and b(u) to mean? Is a(-u) subscripting with a "u" that happens to be negative? If so then if b(u) is to indicate subscripting, then it would be with a negative value, and subscripting a probability distribution at a position would not appear to make sense.
Image Analyst
2015 年 10 月 6 日
To know what a(-u) is, you need to know which element is the "origin" so we can flip the vector about that origin. Anyway, the answer will of course just be b again, with some padding of zeros on the outer edges.
Adam
2015 年 10 月 6 日
Can you not just use the builtin conv function?
jafar
2015 年 10 月 6 日
Image Analyst
2015 年 10 月 6 日
Nothing was attached.
jafar
2015 年 10 月 6 日
回答 (1 件)
Image Analyst
2015 年 10 月 6 日
If the origin is halfway between elements 5 and 6 of "a", then just do
C = conv(fliplr(a), b, 'full');
カテゴリ
ヘルプ センター および File Exchange で Uniform Distribution (Continuous) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!