From ad13e073a3b80db7185299dbe0c557dacab6b8cf Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 10 Feb 2025 14:52:50 -0300 Subject: Fixed Legendre basis function --- fits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fits.cpp b/fits.cpp index c4b8a69..9ca9c2c 100644 --- a/fits.cpp +++ b/fits.cpp @@ -23,7 +23,7 @@ inline Real basisFunctions(unsigned N, unsigned i, Real x) { */ inline Real basisFunctions(unsigned N, unsigned i, Real x) { - return std::legendre(i, 0.5 * (x + 1.0)); + return std::legendre(i, 2.0 * (x - 0.5)); } /* -- cgit v1.2.3-70-g09d2