gundam-organization / gundam

GUNDAM, for Generalized and Unified Neutrino Data Analysis Methods, is a suite of applications which aims at performing various statistical analysis with different purposes and setups.
GNU Lesser General Public License v2.1
13 stars 10 forks source link

Fix/spline extrapolation #470

Closed ClarkMcGrew closed 4 months ago

ClarkMcGrew commented 5 months ago

This mostly fixes CalculateCompactSpline and CalculateMonotonicSpline so that when they extrapolate, the extrapolation is symmetric. Part of maintaining the CalculateMonotonicSpline symmetry was to change the monotonicity calculation to use the full Fritsche-Carlson method, instead of short cutting. In addition all of the spline polynomial calculations are updated to use a Horner factorization, and several unused variables have been removed (fewer warnings).