summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-13 17:46:26 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-13 17:46:26 -0300
commit4079c1b22fdef05f84201453e11010662b7b5934 (patch)
treedc2b75851ce000aff688c01551d0379fdddd9d8c
parent98a04c095f2e91773f39b621c80cf7d205328de1 (diff)
downloadcode-4079c1b22fdef05f84201453e11010662b7b5934.tar.gz
code-4079c1b22fdef05f84201453e11010662b7b5934.tar.bz2
code-4079c1b22fdef05f84201453e11010662b7b5934.zip
ACtually fixed bug
-rw-r--r--log-fourier.cpp2
-rw-r--r--log-fourier.hpp2
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<Complex>& Ĉ)
+ (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;