Skip to content

Commit

Permalink
Merge pull request JuliaLang#101 from tensorjack/master
Browse files Browse the repository at this point in the history
Removed checknan argument from scalarstats.rst
  • Loading branch information
simonster committed Nov 15, 2014
2 parents 0370009 + 6d384ba commit 3148a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/scalarstats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Quantile and Friends

Extended method of *quantile*. Equivalent to ``nquantile(x, 4)``, which returns a vector of quantiles at ``0.0, 0.25, 0.50, 0.75, 1.0``.

.. function:: median(x, w[; checknan=true])
.. function:: median(x, w)

Compute the weighted median of ``x``, using weights given by a weight vector ``w`` (of type ``WeightVec``). The weight and data vectors must have the same length. The weighted median :math:`x_k` is the element of ``x`` that satisfies :math:`\sum_{x_i < x_k} w_i \le \frac{1}{2} \sum_{j} w_j` and :math:`\sum_{x_i > x_k} w_i \le \frac{1}{2} \sum_{j} w_j`. If a weight has value zero, then its associated data point is ignored. If none of the weights are positive, an error is thrown. ``NaN`` is returned if ``x`` contains any ``NaN`` values. An error is raised if ``w`` contains any ``NaN`` values.

Expand Down

0 comments on commit 3148a43

Please sign in to comment.