-
- Downloads
Clarification of A2 example that edge effects are not a problem for scipy
-
I doubt that duplicate x points are thrown out by interp1d. It probably just ends up with a degenerate formula that becomes linear. If we had more time we could look into the details of interp1d, but for our purposes, we can just assume that the developers knew what they were doing.
-
I actually just compared the scipy and the "lambda" versions of CurveADT again and they actually both have the same problems with quadratic interpolation at the edges. If the point being interpolated is too close to the edge, then the x_{i-1} point will be an index that wraps around to the end of the sequence. As long as eval(x) is far enough from the boundary, we don't have to worry about this. For plot you want to have a small enough number of intervals that none of the points are calculated too close to the boundary. The more data points in the original input, the less of an issue any of this is.