summaryrefslogtreecommitdiff
path: root/log-fourier.cpp
diff options
context:
space:
mode:
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 8bd7e51..cedab1e 100644
--- a/log-fourier.cpp
+++ b/log-fourier.cpp
@@ -188,7 +188,7 @@ 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₀;
+ unsigned n₀ = 0;
for (unsigned n = 0; n < C.size(); n++) {
if (C[n] > 1) n₀ = n % 2 == 0 ? n / 2 : (n + 1) / 2;
}