I have some matlab code which requires time series data that is uniformly distributed in time to produce an answer. The driver matlab code which reads the data file also runs an interp1( x, y, xi, 'cubic') on the data after it reads the file because the data is not uniformly distributed in time.
Now I have to port this process to Java to add to some production process. The matlab version isn't anemiable to large numbers of data files and can't be used in production.
My actual question is where can I find a Java library that already implements the interp1 'cubic' method to use when the data is read into the process?
According to the MATLAB docs, 'cubic' is the same as piecewise cubic hermite interpolating polynomial (pchip) interpolation. 'spline' produces unacceptable results. I have already looked at Apache commons-math and JAMA.