Gaussian convoluted with an exponential using erfc function

9 次查看(过去 30 天)
I have the below function with the below variable values but it contains a kink at x=0 (the maximum) and at x=-20 (the beginning of the steep increase in gradient).
y2=(h*o/t)*sqrt(pi/2)*exp(0.5*((o/t)^2)-((x2-m)/t)).*erfc(1/(sqrt(2))*((o/t)-((x2-m)/o)));
o=0.009931621960609; h=170; t=130; m=-10;
t is the lifetime and o is the standard deviation of the data so i don believe these can be changed, the other variables changing does not seem to smooth the function. attached are images of my graph (Exgaussian graph) and of the ideal shape i am aiming for (fig3).
How would i go about iterating to this desired curve shape?
  1 个评论
John D'Errico
John D'Errico 2021-1-1
The expression you show for y2 has an obvious singularity at t == 0. Nothing you do to play with the parameters of that functional form will change that.
Does that expression truly represent the convolution of a Gaussian with an exponential? I wonder if that is true. You would need to show how you derived that expression, because it matters not how you try to manipulate that expression, it has this fundamental characteristic, yet your data seems not to.
Too lazy this time of day to actually think about mathematics, so I allowed Google to think for me.
And what I see is an expression that seems similar to yours, yet fails to have a singularity at 0. It does make me wonder if just possibly you have made a mistake in your code or in the expression you are using.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by