Consider this data. I would like to plot it via it Fourier discrete sine transform. However, I am getting a slight offset, as seen here
pdat = ListPlot[data];
ur = FourierDST[data];
n = Length[ur];
pdatFour = Plot[Sqrt[2/(n + 1)] Sum[ur[[r]] Sin[Pi/(n + 1) r s], {r, 1, n}], {s, 0, n}];
Show[pdat, pdatFour]
Any idea why?
data
. $\endgroup$