Skip to content

Commit

Permalink
Change binning to base e in psi as a test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Dec 16, 2023
1 parent e1d0815 commit 31cc42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/obs2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int _get_key(const double local_waiting_time)
// log2(7) == 2.8 -> 3
// log2(8) == 3 -> 3
// log2(8.000001) == 3.000001 -> 4
return ceil(log2(local_waiting_time));
return ceil(log(local_waiting_time));
}


Expand Down Expand Up @@ -101,7 +101,7 @@ json PsiConfig::as_json() const
{
json j;
j["psi_config"] = _counter;
j["psi_config_out_of_counte"] = _out_of_counter;
j["psi_config_out_of_counter"] = _out_of_counter;
return j;
}

Expand Down

0 comments on commit 31cc42e

Please # to comment.