@@ -322,7 +322,7 @@ The algorithm returns an estimator of the generative distribution's variance
322322under the assumption that each entry of `itr` is a sample drawn from the same
323323unknown distribution, with the samples uncorrelated.
324324For arrays, this computation is equivalent to calculating
325- `sum((itr .- mean(itr)).^2 ) / (length(itr) - 1)`.
325+ `sum(abs2. (itr .- mean(itr))) / (length(itr) - 1)`.
326326If `corrected` is `true`, then the sum is scaled with `n-1`,
327327whereas the sum is scaled with `n` if `corrected` is
328328`false` with `n` the number of elements in `itr`.
@@ -360,7 +360,7 @@ The algorithm returns an estimator of the generative distribution's variance
360360under the assumption that each entry of `itr` is a sample drawn from the same
361361unknown distribution, with the samples uncorrelated.
362362For arrays, this computation is equivalent to calculating
363- `sum((itr .- mean(itr)).^2 ) / (length(itr) - 1)`.
363+ `sum(abs2. (itr .- mean(itr))) / (length(itr) - 1)`.
364364If `corrected` is `true`, then the sum is scaled with `n-1`,
365365whereas the sum is scaled with `n` if `corrected` is
366366`false` where `n` is the number of elements in `itr`.
@@ -441,7 +441,7 @@ The algorithm returns an estimator of the generative distribution's standard
441441deviation under the assumption that each entry of `itr` is a sample drawn from
442442the same unknown distribution, with the samples uncorrelated.
443443For arrays, this computation is equivalent to calculating
444- `sqrt(sum((itr .- mean(itr)).^2 ) / (length(itr) - 1))`.
444+ `sqrt. (sum(abs2. (itr .- mean(itr))) / (length(itr) - 1))`.
445445If `corrected` is `true`, then the sum is scaled with `n-1`,
446446whereas the sum is scaled with `n` if `corrected` is
447447`false` with `n` the number of elements in `itr`.
@@ -485,7 +485,7 @@ The algorithm returns an estimator of the generative distribution's standard
485485deviation under the assumption that each entry of `itr` is a sample drawn from
486486the same unknown distribution, with the samples uncorrelated.
487487For arrays, this computation is equivalent to calculating
488- `sqrt(sum((itr .- mean(itr)).^2 ) / (length(itr) - 1))`.
488+ `sqrt. (sum(abs2. (itr .- mean(itr))) / (length(itr) - 1))`.
489489If `corrected` is `true`, then the sum is scaled with `n-1`,
490490whereas the sum is scaled with `n` if `corrected` is
491491`false` with `n` the number of elements in `itr`.
0 commit comments