diff options
Diffstat (limited to 'spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md')
-rw-r--r-- | spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md b/spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md index 06f6914..939f3a2 100644 --- a/spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md +++ b/spec/path-spec/learning-when-to-give-up-timeout-on-circuit-construction.md @@ -77,7 +77,7 @@ To avoid ln(1.0+epsilon) precision issues, use log laws to rewrite the estimator for 'alpha' as the sum of logs followed by subtraction, rather than multiplication and division: -alpha = n/(Sum_n{ln(MAX(Xm, x_i))} - n*ln(Xm)) +alpha = n/(Sum_n{ln(MAX(Xm, x_i))} - n\*ln(Xm)) In this, n is the total number of build times that have completed, x_i is the ith recorded build time, and Xm is the modes of x_i as above. @@ -133,9 +133,9 @@ other lengths, the client multiples the timeout_ms and close_ms values by a scaling factor determined by the number of communication hops needed to build their circuits: -timeout_ms[hops=n] = timeout_ms * Actions(N) / Actions(3) +timeout_ms\[hops=n\] = timeout_ms * Actions(N) / Actions(3) -close_ms[hops=n] = close_ms * Actions(N) / Actions(3) +close_ms\[hops=n\] = close_ms * Actions(N) / Actions(3) where Actions(N) = N * (N + 1) / 2. |