This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch replace-folsom in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 301f315fc4db1d8670a3ae9e5cb45f2dff03b9af Author: Nick Vatamaniuc <[email protected]> AuthorDate: Tue Jul 18 00:52:57 2023 -0400 [fixup|math] add comment to flim function --- src/couch_stats/src/couch_stats_math.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/couch_stats/src/couch_stats_math.erl b/src/couch_stats/src/couch_stats_math.erl index ab7d255ba..dfffc9a16 100644 --- a/src/couch_stats/src/couch_stats_math.erl +++ b/src/couch_stats/src/couch_stats_math.erl @@ -394,6 +394,9 @@ uniform_dist_test() -> prop(Prop, KVs) -> proplists:get_value(Prop, KVs). +% Since we can't compare float exactly we use +% a tollerance of 5% and a minimum of 0.05 +% flim(X, Y) -> flim(X, Y, max(0.05, abs(X * 0.05))).
