From 4079c1b22fdef05f84201453e11010662b7b5934 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 13 May 2025 17:46:26 -0300 Subject: ACtually fixed bug --- log-fourier.cpp | 2 +- log-fourier.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/log-fourier.cpp b/log-fourier.cpp index 2e31fa5..a18b61a 100644 --- a/log-fourier.cpp +++ b/log-fourier.cpp @@ -240,6 +240,6 @@ Real C0(const LogarithmicFourierTransform& fft, const std::vector& Ĉ) + (2 - h₂ₙ / h₂ₙ₊₁) * f₂ₙ₊₂ ); } - return C / (4 * M_PI); + return C * pow(fft.shift, 2) / M_PI; } diff --git a/log-fourier.hpp b/log-fourier.hpp index 9c7c237..ee85775 100644 --- a/log-fourier.hpp +++ b/log-fourier.hpp @@ -20,8 +20,8 @@ private: Real τₛ; Real ωₛ; Real sₛ; - Real shift; public: + Real shift; LogarithmicFourierTransform(unsigned N, Real k, Real Δτ, unsigned pad = 4, Real shift = 0.5); ~LogarithmicFourierTransform(); Real τ(unsigned n) const; -- cgit v1.2.3-70-g09d2