Skip to content

Commit 7b0306e

Browse files
committed
More comment
1 parent 98d83ad commit 7b0306e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Common/QueryFuzzer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ class QueryFuzzer
7979
// with some small-but-not-tiny probability), so the expected number of calls becomes infinite.
8080
// Despite infinite expected tree size, the p99 size may still be moderate
8181
// (see e.g. "St. Petersburg lottery"), so the failures can be rare in practice.
82+
//
83+
// (What does "infinite expected value" mean in practice? Suppose you keep generating more and
84+
// more values and averaging them. If the expected value is finite, the average will be
85+
// converging to it. If the expected value is inifinite, the average will keep growing without
86+
// bound.)
8287
size_t iteration_count = 0;
8388
const size_t iteration_limit = 500000;
8489

0 commit comments

Comments
 (0)