The Approximate Counting algorithm currently has four implementations and four different ways of how to act on the result of abs((avg - n_items) / n_items) < threshold.
| Julia |
What it does |
| Julia |
Returns true or false |
| Python |
prints "passed" if the condition is true |
| C++ |
returns "pass" if the condition is true, otherwise "fail" |
| C |
aborts program execution |