Skip to content

Commit 157fb34

Browse files
thchrKeno
authored andcommitted
fix doc-string references to bit-rotted variables x(->v) and v(->itr) in var, varm, std, stdm, & quantiles
1 parent cd850de commit 157fb34

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎stdlib/Statistics/src/Statistics.jl‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ end
248248
Compute the sample variance of a collection `v` with known mean(s) `m`,
249249
optionally over the given dimensions. `m` may contain means for each dimension of
250250
`v`. If `corrected` is `true`, then the sum is scaled with `n-1`,
251-
whereas the sum is scaled with `n` if `corrected` is `false` where `n = length(x)`.
251+
whereas the sum is scaled with `n` if `corrected` is `false` where `n = length(v)`.
252252
253253
!!! note
254254
If array contains `NaN` or [`missing`](@ref) values, the result is also
@@ -278,7 +278,7 @@ The algorithm will return an estimator of the generative distribution's variance
278278
under the assumption that each entry of `v` is an IID drawn from that generative
279279
distribution. This computation is equivalent to calculating `sum(abs2, v - mean(v)) /
280280
(length(v) - 1)`. If `corrected` is `true`, then the sum is scaled with `n-1`,
281-
whereas the sum is scaled with `n` if `corrected` is `false` where `n = length(x)`.
281+
whereas the sum is scaled with `n` if `corrected` is `false` where `n = length(v)`.
282282
The mean `mean` over the region may be provided.
283283
284284
!!! note
@@ -345,7 +345,7 @@ deviation under the assumption that each entry of `v` is an IID drawn from that
345345
distribution. This computation is equivalent to calculating `sqrt(sum((v - mean(v)).^2) /
346346
(length(v) - 1))`. A pre-computed `mean` may be provided. If `corrected` is `true`,
347347
then the sum is scaled with `n-1`, whereas the sum is scaled with `n` if `corrected` is
348-
`false` where `n = length(x)`.
348+
`false` where `n = length(v)`.
349349
350350
!!! note
351351
If array contains `NaN` or [`missing`](@ref) values, the result is also
@@ -376,7 +376,7 @@ std(iterable; corrected::Bool=true, mean=nothing) =
376376
Compute the sample standard deviation of a vector `v`
377377
with known mean `m`. If `corrected` is `true`,
378378
then the sum is scaled with `n-1`, whereas the sum is
379-
scaled with `n` if `corrected` is `false` where `n = length(x)`.
379+
scaled with `n` if `corrected` is `false` where `n = length(v)`.
380380
381381
!!! note
382382
If array contains `NaN` or [`missing`](@ref) values, the result is also
@@ -882,7 +882,7 @@ probabilities `p` on the interval [0,1]. The keyword argument `sorted` indicates
882882
`itr` can be assumed to be sorted.
883883
884884
Quantiles are computed via linear interpolation between the points `((k-1)/(n-1), v[k])`,
885-
for `k = 1:n` where `n = length(v)`. This corresponds to Definition 7 of Hyndman and Fan
885+
for `k = 1:n` where `n = length(itr)`. This corresponds to Definition 7 of Hyndman and Fan
886886
(1996), and is the same as the R default.
887887
888888
!!! note

0 commit comments

Comments
 (0)