Skip to content

Commit 74ef7f0

Browse files
authored
Fix change <= to \leq in documentation (#940)
1 parent 87f372c commit 74ef7f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/weights.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ With [`FrequencyWeights`](@ref), the function returns the same result as
705705
`quantile` for a vector with repeated values. Weights must be integers.
706706
707707
With non `FrequencyWeights`, denote ``N`` the length of the vector, ``w`` the vector of weights,
708-
``h = p (\\sum_{i<= N} w_i - w_1) + w_1`` the cumulative weight corresponding to the
709-
probability ``p`` and ``S_k = \\sum_{i<=k} w_i`` the cumulative weight for each
708+
``h = p (\\sum_{i \\leq N} w_i - w_1) + w_1`` the cumulative weight corresponding to the
709+
probability ``p`` and ``S_k = \\sum_{i \\leq k} w_i`` the cumulative weight for each
710710
observation, define ``v_{k+1}`` the smallest element of `v` such that ``S_{k+1}``
711711
is strictly superior to ``h``. The weighted ``p`` quantile is given by ``v_k + \\gamma (v_{k+1} - v_k)``
712712
with ``\\gamma = (h - S_k)/(S_{k+1} - S_k)``. In particular, when all weights are equal,

0 commit comments

Comments
 (0)