Skip to content

Commit d9cb8f8

Browse files
authored
Fix varcorrection docstring for UnitWeights (#785)
This didn't match the implementation. Fixes #784.
1 parent e8ab265 commit d9cb8f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/weights.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ uweights(::Type{T}, s::Int) where {T<:Real} = UnitWeights{T}(s)
347347
"""
348348
varcorrection(w::UnitWeights, corrected=false)
349349
350-
* `corrected=true`: ``\\frac{n}{n - 1}``, where ``n`` is the length of the weight vector
350+
* `corrected=true`: ``\\frac{1}{n - 1}``, where ``n`` is the length of the weight vector
351351
* `corrected=false`: ``\\frac{1}{n}``, where ``n`` is the length of the weight vector
352352
353353
This definition is equivalent to the correction applied to unweighted data.

0 commit comments

Comments
 (0)