NDsolve gives me a solution to a certain NL PDE. I want to evaluate the rate of exponential decay of the maxima of the solutions in time. So, I plot
Max1[t_?NumericQ] := First[Maximize[sol1[[1]][x, t], 0 <= x <= L, x]]
data1 = Table[{y, LMax1[y]}, {y, T0, Tfit}];
efit1 = FindFit[data1, Exp[a*t], {a}, t];
Plot[{Max1[y], Exp[efit1[1]*y]}, {y, T0, Tfit}, PlotRange -> All, Frame -> True]
and it looks like this:

Now, since I would like to fit this exponentially, or take the logarithm to evaluate the slope, how can I smooth that little jump which creates me a lot of trouble?
Here is what I get if I take the Log:
LMax1[t_?NumericQ] := Log[Abs[First[Maximize[sol1[[1]][x, t], 0 <= x <= L, x]]] - 1]
data1 = Table[{y, LMax1[y]}, {y, T0, Tfit}];
fit1 = Fit[data1, {1, y}, y];
Plot[{LMax1[y], fit1}, {y, T0, Tfit}]

HPFilterpackage, see this thread: http://mathematica.stackexchange.com/q/31629/131 (esp. the link to the updated package). – Yves Klett Nov 18 '13 at 12:18sol1. – Yves Klett Nov 18 '13 at 12:20i = Import["http://i.stack.imgur.com/u3y75.jpg"]; i1 = ImageTake[ColorReplace[i, Black], {20, 300}, {50, 500}]; l1 = PixelValuePositions[i1, Blue, .9]; ListPlot@l1– Dr. belisarius Nov 18 '13 at 12:44testdata = Accumulate[RandomVariate[NormalDistribution[0, 0.5], 200]]; Get["HPFilter", Path ->"/Users/dc13661/Dropbox/Phd/1_High_density/Codes"] hptest = HPFilter[testdata, 1600]; ListLinePlot[{testdata, hptest}]It gives me an empty plot :(
– usumdelphini Nov 18 '13 at 12:58testdata = Accumulate[RandomVariate[NormalDistribution[0, 0.5], 200]]; Get["http://www.verbeia.com/mathematica/mma/HPFilter.m"] hptest = HPFilter[testdata, 1600]; ListLinePlot[{testdata, hptest}]– Yves Klett Nov 18 '13 at 14:06Get::noopen: Cannot open http://www.verbeia.com/mathematica/mma/HPFilter.m. >>– usumdelphini Nov 18 '13 at 16:00