I'm trying to get Mathematica to perform the convolution I need. I think it's fairly simple, just a convolution between a NormalNormal
distribution and a uniformUniform
distribution [-1,1]on [-1,1]
. A friend of mine mentioned using the delta function to do so but I'm not sure how to evaluate it correctly in MathematicalMathematica... Below is my attempt:
Integrate[PDF[NormalDistribution[μ, σ]][x - y](DiracDelta[# + 1] + DiracDelta[# - 1])/2 & [y]2&[y],
{y, -Infinity, Infinity}]
However, the output when iI plot the solution seems readily wrong. I believe my problem is in how I'm implementing the DiracDeltaDiracDelta
. Any help would be greatly appreciated.