summaryrefslogtreecommitdiff
path: root/fits.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fits.cpp')
-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));
}
/*