Looking for module for shrinking a list with n-point means

2009-05-22 Thread Yash Ganthe
Hi, I would like to shrink a large list in the following way: If the List has 1000 integers, we need only 100 averages such that the 1000 points are average for every 10 consecutive values. So p0 to p9 will be averaged to obtain t0. p10 to p19 will be averaged to obtain t1 and so on. This is a

Re: Looking for module for shrinking a list with n-point means

2009-05-22 Thread John Machin
On May 22, 8:03 pm, Yash Ganthe yas...@gmail.com wrote: Hi, I would like to shrink a large list in the following way: If the List has 1000 integers, we need only 100 averages such that the 1000 points are average for every 10 consecutive values. So p0 to p9 will be averaged to obtain t0. p10

Re: Looking for module for shrinking a list with n-point means

2009-05-22 Thread Scott David Daniels
Yash Ganthe wrote: I would like to shrink a large list in the following way: If the List has 1000 integers, we need only 100 averages such that the 1000 points are average for every 10 consecutive values. So p0 to p9 will be averaged to obtain t0. p10 to p19 will be averaged to obtain t1 and so

Re: Looking for module for shrinking a list with n-point means

2009-05-22 Thread Robert Kern
On 2009-05-22 08:50, Scott David Daniels wrote: Yash Ganthe wrote: I would like to shrink a large list in the following way: If the List has 1000 integers, we need only 100 averages such that the 1000 points are average for every 10 consecutive values. So p0 to p9 will be averaged to obtain t0.

Re: Looking for module for shrinking a list with n-point means

2009-05-22 Thread Yash Ganthe
Thanks John, The code u provided works for me. Indeed it is a simple requirement and I am a complete novice to Python. -Yash -- http://mail.python.org/mailman/listinfo/python-list