summaryrefslogtreecommitdiff
path: root/log-fourier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log-fourier.cpp')
-rw-r--r--log-fourier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/log-fourier.cpp b/log-fourier.cpp
index cedab1e..5b7964d 100644
--- a/log-fourier.cpp
+++ b/log-fourier.cpp
@@ -189,9 +189,11 @@ Real estimateZ(LogarithmicFourierTransform& fft, const std::vector<Real>& C, con
Real energy(const LogarithmicFourierTransform& fft, std::vector<Real>& C, const std::vector<Real>& R, unsigned p, unsigned s, Real λ, Real β) {
unsigned n₀ = 0;
+ /*
for (unsigned n = 0; n < C.size(); n++) {
- if (C[n] > 1) n₀ = n % 2 == 0 ? n / 2 : (n + 1) / 2;
+ if (C[n] > 1 || R[n] > 1) n₀ = n % 2 == 0 ? n / 2 : (n + 1) / 2;
}
+ */
Real E = fft.t(2*n₀) * df(λ, p, s, 1);
for (unsigned n = n₀; n < C.size()/2-1; n++) {
Real R₂ₙ = R[2*n];