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

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.
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
Adam 2015년 10월 6일
Can you not just use the builtin conv function?
jafar
jafar 2015년 10월 6일
To Walter Roberson, Image Analyst and Adam
a(u) and b(u) are two probability density functions ( any pdf could be used e.g two gaussian distributions with different mean, or any other distributions)
Explanation of whole question is attached
thank you
Nothing was attached.
jafar
jafar 2015년 10월 6일
Attached file

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 10월 6일

0 개 추천

If the origin is halfway between elements 5 and 6 of "a", then just do
C = conv(fliplr(a), b, 'full');

댓글 수: 1

jafar
jafar 2015년 10월 6일
Thank You
No!
The origin is not halfway between elements 5 and 6 of "a", it is on zero,

댓글을 달려면 로그인하십시오.

태그

질문:

2015년 10월 6일

댓글:

2015년 10월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by