Skip to content

Commit

Permalink
refine scaler
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Dec 16, 2024
1 parent 31a19e1 commit d19c886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cabana/binaryview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d19c886

Please sign in to comment.