From d19c88656d3558faf1d9f18738804f46232d87eb Mon Sep 17 00:00:00 2001 From: deanlee Date: Mon, 16 Dec 2024 12:14:33 +0800 Subject: [PATCH] refine scaler --- tools/cabana/binaryview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cabana/binaryview.cc b/tools/cabana/binaryview.cc index 19ae7547fe7f4bd..a915baad95db20b 100644 --- a/tools/cabana/binaryview.cc +++ b/tools/cabana/binaryview.cc @@ -320,7 +320,7 @@ void BinaryViewModel::updateState() { const double min_alpha_with_signal = 25.0; // Base alpha for small flip counts const double min_alpha_no_signal = 10.0; // Base alpha for small flip counts for no signal bits const double log_factor = 1.0 + 0.2; // Factor for logarithmic scaling - const double log_scaler = max_alpha / log2(log_factor * max_bit_flip_count); + const double log_scaler = max_alpha / log2(1.0 + log_factor * max_bit_flip_count); for (size_t i = 0; i < binary.size(); ++i) { for (int j = 0; j < 8; ++j) {