Cubic Spline Interpolation Question
I am having some challenges implementing the cubic spline program (Mathot).
Can you look at the figure at the end of the attached PDF? It is a plotting of one of our participant's data with the script applied. It looks as if it is partially working. At the right side of the figure from approximately 3000-4000 on the horizontal axis it seems to have interpolated the blink missing data beautifully. However on the left of the figure it seems to have detected a blink that is not there and made an interpolation that is of course not accurate. We think it has something to do with the 0 values at the bottom of the y-axis. Would you be able to help us solve this problem?