Author mark.dickinson
Recipients cool-RR, mark.dickinson, rhettinger, steven.daprano
Date 2016-06-09.09:24:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465464244.51.0.950912500459.issue27181@psf.upfronthosting.co.za>
In-reply-to
Content
On the other hand, apparently `exp(mean(log(...)))` is good enough for SciPy: its current implementation looks like this:

def gmean(a, axis=0):
    a, axis = _chk_asarray(a, axis)
    log_a = ma.log(a)
    return ma.exp(log_a.mean(axis=axis))
History
Date User Action Args
2016-06-09 09:24:04mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, steven.daprano, cool-RR
2016-06-09 09:24:04mark.dickinsonsetmessageid: <1465464244.51.0.950912500459.issue27181@psf.upfronthosting.co.za>
2016-06-09 09:24:04mark.dickinsonlinkissue27181 messages
2016-06-09 09:24:04mark.dickinsoncreate