In need of rough and ready interpolation for a small data set, I tried
to use TSpline3 and/or TSpine5 to accomplish my goals.
The results were disappointing. Both classes fail on one (the most
important, of course) one my data sets—though both work well on my
This data exhibits some narrow (a few bins wide) peaks, so I initially
preferred TSpline3 to avoid the wild fluctuation I expected (and got)
from TSpine5, but the cubic spline is computing all coefficients as
NaN. TSpline5 works, but the interpolation takes on values far outside
the domain of the data (like a high degree polynomial fit), so the
result is not acceptable.
I’m not in a strong position for diagnosing the problem myself because
the documentation is very poor: what little there is is full of
copy-n-paste derived anachronisms.
There is no indication of the “opt” parameter in the constructors
does. I assume it controls how the boundary values are interpreted,
but I can only guess as to how.
I am forced to assume that these classes exist to support the drawing
of smooth curves, rather than being intended as part of the
user-facing API, but I would have found them useful in this instance.
Any advice that any has would be appreciated.
In the mean time I’ll look for another implementation that I can weld