in reply to Re: calculate average in sliding windows
in thread calculate average in sliding windows
but it doesn't take into account the positions in column 1
Sorry, I'm still not sure what you want (and it's a little diffficult to infer it from code which - as you state - doesn't work).
Are you saying the positions in column 1 are meant to represent indices in some sparse array, with all unspecified positions (such as 12498249..12512574, etc.) implicitly having a value of zero, or what?
I think it would help if you could come up with some simplified (but sufficient/complete) sample input (say using a window size of 3) together with the desired output values.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: calculate average in sliding windows
by marfabe (Initiate) on May 23, 2012 at 14:43 UTC | |
by Eliya (Vicar) on May 23, 2012 at 15:05 UTC | |
by marfabe (Initiate) on May 23, 2012 at 15:31 UTC |
In Section
Seekers of Perl Wisdom