<br><br><div class="gmail_quote">On Sun, Nov 29, 2009 at 6:15 PM, Anne Archibald <span dir="ltr"><<a href="mailto:peridot.faceted@gmail.com">peridot.faceted@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">2009/11/28 Wayne Watson <<a href="mailto:sierra_mtnview@sbcglobal.net">sierra_mtnview@sbcglobal.net</a>>:<br>
> Anne Archibald wrote:<br>
>> 2009/11/28 Wayne Watson <<a href="mailto:sierra_mtnview@sbcglobal.net">sierra_mtnview@sbcglobal.net</a>>:<br>
>><br>
>>> I was only illustrating a way that I would not consider, since the<br>
>>> hardware has already created the pdf. I've already coded it pretty much<br>
>>> as you have suggested. As I think I mention ed above, I'm a bit<br>
>>> surprised numpy doesn't provide the code you suggest as part of some<br>
>>> function. CalcSimplefromPDF(xvalues=mydatarray, avg=ture, minmax=true,<br>
>>> ...).<br>
>>><br>
>><br>
>> Feel free to submit an implementation to numpy's issue tracker. I<br>
>> suggest modifying mean, std, and var (at least) so that, like average,<br>
>> they take an array of weights.<br>
><br>
</div><div class="im">> How would I do that?<br>
><br>
<br>
</div>Obtain a copy of recent numpy source code - a .tar file from the<br>
website, or using SVN, or git. Then add the feature plus some tests,<br>
confirm that the tests pass, and post a request and your patch to the<br>
bug tracker.<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br>You might also want to use average as a starting point.<br><br>Chuck <br></div><br></div>