@@ -322,7 +322,7 @@ The algorithm returns an estimator of the generative distribution's variance
322
322
under the assumption that each entry of `itr` is a sample drawn from the same
323
323
unknown distribution, with the samples uncorrelated.
324
324
For 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)`.
326
326
If `corrected` is `true`, then the sum is scaled with `n-1`,
327
327
whereas the sum is scaled with `n` if `corrected` is
328
328
`false` with `n` the number of elements in `itr`.
@@ -360,7 +360,7 @@ The algorithm returns an estimator of the generative distribution's variance
360
360
under the assumption that each entry of `itr` is a sample drawn from the same
361
361
unknown distribution, with the samples uncorrelated.
362
362
For 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)`.
364
364
If `corrected` is `true`, then the sum is scaled with `n-1`,
365
365
whereas the sum is scaled with `n` if `corrected` is
366
366
`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
441
441
deviation under the assumption that each entry of `itr` is a sample drawn from
442
442
the same unknown distribution, with the samples uncorrelated.
443
443
For 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))`.
445
445
If `corrected` is `true`, then the sum is scaled with `n-1`,
446
446
whereas the sum is scaled with `n` if `corrected` is
447
447
`false` with `n` the number of elements in `itr`.
@@ -485,7 +485,7 @@ The algorithm returns an estimator of the generative distribution's standard
485
485
deviation under the assumption that each entry of `itr` is a sample drawn from
486
486
the same unknown distribution, with the samples uncorrelated.
487
487
For 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))`.
489
489
If `corrected` is `true`, then the sum is scaled with `n-1`,
490
490
whereas the sum is scaled with `n` if `corrected` is
491
491
`false` with `n` the number of elements in `itr`.
0 commit comments