Skip to content

Commit 5811fba

Browse files
authored
Fix typo in docstring for var (#35)
1 parent a87c385 commit 5811fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Statistics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Compute the sample variance of collection `itr`.
344344
The algorithm returns an estimator of the generative distribution's variance
345345
under the assumption that each entry of `itr` is an IID drawn from that generative
346346
distribution. For arrays, this computation is equivalent to calculating
347-
`sum((itr .- mean(itr)).^2) / (length(itr) - 1)).
347+
`sum((itr .- mean(itr)).^2) / (length(itr) - 1))`.
348348
If `corrected` is `true`, then the sum is scaled with `n-1`,
349349
whereas the sum is scaled with `n` if `corrected` is
350350
`false` with `n` the number of elements in `itr`.

0 commit comments

Comments
 (0)