diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-10 11:04:34 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-05-10 11:04:34 -0300 |
commit | 71503fdedef748753b6218afca06c2ad23ca50dc (patch) | |
tree | e42ab2ce8a130cfa7113b581df435857078fe0c4 | |
parent | 11b1e4c4451f5db9b237d06c60b7d23d40852e24 (diff) | |
download | code-71503fdedef748753b6218afca06c2ad23ca50dc.tar.gz code-71503fdedef748753b6218afca06c2ad23ca50dc.tar.bz2 code-71503fdedef748753b6218afca06c2ad23ca50dc.zip |
Fixed again
-rw-r--r-- | log-fourier.cpp | 2 |
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; } |