Affects Version/s: 3.1.1
Fix Version/s: 3.3
Windows 7 64 bit, 64 bit JVM
I've been testing out the Tricubic spline functions, and have been getting some strange values. I dug down a bit, and it seems like they start at the Bicubic level. SplineInterpolator/PolynomialSplineFunction seem to be returning correct values. I set up a block of data that increases linearly, so you'd expect the interpolated values to follow the same trend, except the values tend to overshoot to half the distance between knot points, and then undershoot for the remaining half. Probably the easiest thing would be to show some tests. First - 1D which works fine:
and next, 2D which doesn't:
The data points increase from 76 to 80 in a linear way. Incrementing by 1/8 the distance to the next point, the 1D spline returns:
The 2D spline returns:
Even though it's still effectively a 1D problem. I'm not sure exactly what's causing it - maybe something when multiplying the coefficients, but thought I should flag it.