[Python-ideas] Pre-PEP: adding a statistics module to Python
Ryan
rymg19 at gmail.com
Thu Aug 8 02:03:43 CEST 2013
That would mostly be an unnecessary line of code. Doing that to a list is just like doing list(iterator). The difference is that it would make all lists lose that precision, and we'd end up with another problem on your hands.
Ethan Furman <ethan at stoneleaf.us> wrote:
>On 08/07/2013 03:20 PM, David Mertz wrote:
>>
>> Here's a question for the actual statisticians on the list (I'm not
>close to this). Would having a look-ahead window of
>> moderate size (probably configurable) do enough good in numeric
>accuracy to be worthwhile? Obviously, creating
>> pathological cases is still possible, but in the "normal" situation,
>does this matter enough? I.e. if the function were
>> to read 100 numbers from an iterator, perform some manipulation on
>their ordering or scaling, produce that better
>> intermediate result, then do the same with the next chunk of 100
>numbers, is this enough of a win to have as an option?
>
>I have a follow-up question: considering the built-in error when
>calculating statistics, is the difference between
>sequence and iterator significant? Would we be just as well served
>with `it = iter(sequence)` and always using the
>one-pass algorithm?
>
>--
>~Ethan~
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>http://mail.python.org/mailman/listinfo/python-ideas
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130807/0e2ef2c4/attachment.html>
More information about the Python-ideas
mailing list