summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-02-10 14:52:50 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-02-10 14:52:50 -0300
commitad13e073a3b80db7185299dbe0c557dacab6b8cf (patch)
tree50a9cafc3655a359bde3e2e87bf37eaf9074fdb1
parente65a7fd1181e68dd5ff858678e7407ce04838b6a (diff)
downloadictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.tar.gz
ictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.tar.bz2
ictp-saifr_colloquium-ad13e073a3b80db7185299dbe0c557dacab6b8cf.zip
Fixed Legendre basis function
-rw-r--r--fits.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}
/*