<div dir="ltr"><div><div>I think that there would be a very good reason to have a separate function if we were to introduce weights to the inputs, similarly to the way that we have mean and average. This would have some (positive) repercussions like making weighted histograms with the Freedman-Diaconis binwidth estimator a possibility. I have had this change on the back-burner for a long time, mainly because I was too lazy to figure out how to include it in the C code. However, I will take a closer look.<br><br></div>Regards,<br><br></div>    -Joe<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 21, 2017 at 5:11 PM, Chun-Wei Yuan <span dir="ltr"><<a href="mailto:chunwei.yuan@gmail.com" target="_blank">chunwei.yuan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There's an ongoing effort to introduce quantile() into numpy.  You'd use it just like percentile(), but would input your q value in probability space (0.5 for 50%):<div><br></div><div><a href="https://github.com/numpy/numpy/pull/9213" target="_blank">https://github.com/numpy/<wbr>numpy/pull/9213</a><br></div><div><br></div><div>Since there's a great deal of overlap between these two functions, we'd like to solicit opinions on how to move forward on this.</div><div><br></div><div>The current thinking is to tolerate the redundancy and keep both, using one as the engine for the other.  I'm partial to having quantile because 1.) I prefer probability space, and 2.) I have a PR waiting on quantile().</div><div><br></div><div>Best,</div><div><br></div><div>C</div></div>
<br>______________________________<wbr>_________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/numpy-<wbr>discussion</a><br>
<br></blockquote></div><br></div>