summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-19 12:59:29 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-05-19 12:59:29 -0300
commit51f4dacc9e67bab7595f3de4133c12ab4be60d78 (patch)
treee1fa1963c29715291d949d993b04d3cfb2821b14
parent7c44546421ed1c4bc6e5135ec90bccac2a0ac436 (diff)
downloadcode-51f4dacc9e67bab7595f3de4133c12ab4be60d78.tar.gz
code-51f4dacc9e67bab7595f3de4133c12ab4be60d78.tar.bz2
code-51f4dacc9e67bab7595f3de4133c12ab4be60d78.zip
Fix NaN check under smoothingHEADmaster
-rw-r--r--log-fourier_integrator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/log-fourier_integrator.cpp b/log-fourier_integrator.cpp
index 3ae00dd..e13cf1b 100644
--- a/log-fourier_integrator.cpp
+++ b/log-fourier_integrator.cpp
@@ -204,7 +204,7 @@ int main(int argc, char* argv[]) {
std::cerr << std::setprecision(7) << β << " " << Δβ << " " << μₜ << " " << ΔCₜ << " " << γ;
}
- if (std::isnan(Cₜ[0])) {
+ if (std::isnan(ΔCₜ)) {
β -= Δβ;
Δβ *= 0.1;
β += Δβ;