Skip to content

Commit 39d0433

Browse files
authored
Fix default value corrected in mean_and_std and mean_and_var docstrings (#836)
1 parent 43024d1 commit 39d0433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/moments.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ std(v::RealArray, w::AbstractWeights, dim::Int;
9090

9191
##### Fused statistics
9292
"""
93-
mean_and_var(x, [w::AbstractWeights], [dim]; corrected=false) -> (mean, var)
93+
mean_and_var(x, [w::AbstractWeights], [dim]; corrected=true) -> (mean, var)
9494
9595
Return the mean and variance of collection `x`. If `x` is an `AbstractArray`,
9696
`dim` can be specified as a tuple to compute statistics over these dimensions.
@@ -105,7 +105,7 @@ function mean_and_var(x; corrected::Bool=true)
105105
end
106106

107107
"""
108-
mean_and_std(x, [w::AbstractWeights], [dim]; corrected=false) -> (mean, std)
108+
mean_and_std(x, [w::AbstractWeights], [dim]; corrected=true) -> (mean, std)
109109
110110
Return the mean and standard deviation of collection `x`. If `x` is an `AbstractArray`,
111111
`dim` can be specified as a tuple to compute statistics over these dimensions.

0 commit comments

Comments
 (0)