Skip to content

Commit 2ac5bec

Browse files
authored
correct std docs: sqrt is elementwise
1 parent 39f6332 commit 2ac5bec

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
@@ -441,7 +441,7 @@ The algorithm returns an estimator of the generative distribution's standard
441441
deviation under the assumption that each entry of `itr` is a sample drawn from
442442
the same unknown distribution, with the samples uncorrelated.
443443
For arrays, this computation is equivalent to calculating
444-
`sqrt(sum((itr .- mean(itr)).^2) / (length(itr) - 1))`.
444+
`sqrt.(sum((itr .- mean(itr)).^2) / (length(itr) - 1))`.
445445
If `corrected` is `true`, then the sum is scaled with `n-1`,
446446
whereas the sum is scaled with `n` if `corrected` is
447447
`false` with `n` the number of elements in `itr`.

0 commit comments

Comments
 (0)