Skip to content

Commit

Permalink
more histogram checks
Browse files Browse the repository at this point in the history
  • Loading branch information
joewilliams committed Nov 30, 2011
1 parent 506e546 commit bec8ef6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/folsom_erlang_checks.erl
Expand Up @@ -191,6 +191,16 @@ histogram_checks(List) ->
1 = proplists:get_value(min, List),
5000 = proplists:get_value(max, List),
956.6 = proplists:get_value(arithmetic_mean, List),
143.6822521631216 = proplists:get_value(geometric_mean, List),

Value = proplists:get_value(harmonic_mean, List),
ok = case Value - 7.57556627 of
Diff when Diff < 0.00000001 ->
ok;
_ ->
error
end,

200 = proplists:get_value(median, List),
2412421.1555555556 = proplists:get_value(variance, List),
1553.1970755688267 = proplists:get_value(standard_deviation, List),
Expand Down

0 comments on commit bec8ef6

Please sign in to comment.