summaryrefslogtreecommitdiff
path: root/log-fourier.cpp
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 /log-fourier.cpp
parent98a04c095f2e91773f39b621c80cf7d205328de1 (diff)
downloadcode-4079c1b22fdef05f84201453e11010662b7b5934.tar.gz
code-4079c1b22fdef05f84201453e11010662b7b5934.tar.bz2
code-4079c1b22fdef05f84201453e11010662b7b5934.zip
ACtually fixed bug
Diffstat (limited to 'log-fourier.cpp')
-rw-r--r--log-fourier.cpp2
1 files changed, 1 insertions, 1 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;
}