So GSIF::mpspline() and ithir::ea_spline() both iterate over 1:n when making 1cm spline predictions, so that 1 = 0-1cm. mpspline2 and splinetool.exe iterate over 0:n-1, so that 0 = 0-1cm. The index, as k, is fed into the 1cm fit equations - see lines 246-285 of mpspline and lines 193-207 of ea_spline.
I changed my indexing to match splinetool.exe's outputs on purpose, but now I'm having second thoughts. Not sure which approach is actually correct. With 0-indexing, the 0-1cm prediction
So
GSIF::mpspline()
andithir::ea_spline()
both iterate over1:n
when making 1cm spline predictions, so that 1 = 0-1cm. mpspline2 and splinetool.exe iterate over0:n-1
, so that 0 = 0-1cm. The index, ask
, is fed into the 1cm fit equations - see lines 246-285 of mpspline and lines 193-207 of ea_spline.I changed my indexing to match splinetool.exe's outputs on purpose, but now I'm having second thoughts. Not sure which approach is actually correct. With 0-indexing, the 0-1cm prediction
simplifies out to
alfa(h1) + gamma(h1)
ask
ands[[2]]h
are both 0. Not sure if that's a problem.