summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;