larry-discuss team mailing list archive
-
larry-discuss team
-
Mailing list archive
-
Message #00145
Re: groupmean reduce
On Mon, May 3, 2010 at 1:13 PM, <josef.pktd@xxxxxxxxx> wrote:
> Here is a simple implementation of a reduce option in groupmean,
> essentially it is two functions in one.
>
> see https://blueprints.launchpad.net/larry/+spec/group-method-design
> as a standalone function it could also be plugged into other larry
> methods, e.g. larry.mean
>
> Only tested on the example in the file.
>
> Josef
A reduce option would be very handy. And it's very handy to have your
implementation to get a feel for how it would work. Thank you.
BTW, what do you think of a weight input to the group-like functions?
It could be used, for example, to calculated a weighted group mean.
The weight could be 1d or have the same number of dimensions as the
input array.
Follow ups
References