Message209973
Off the top of my head, I can think of three APIs:
(1) separate functions, as Nick suggests:
mean vs weighted_mean, stdev vs weighted_stdev
(2) treat mappings as an implied (value, frequency) pairs
(3) take an additional argument to switch between unweighted and weighted modes.
I dislike #3, but will consider the others for 3.5. |
|
Date |
User |
Action |
Args |
2014-02-02 11:55:18 | steven.daprano | set | recipients:
+ steven.daprano, gregory.p.smith, ncoghlan, oscarbenjamin, wolma |
2014-02-02 11:55:18 | steven.daprano | set | messageid: <1391342118.07.0.0321708389756.issue20479@psf.upfronthosting.co.za> |
2014-02-02 11:55:18 | steven.daprano | link | issue20479 messages |
2014-02-02 11:55:17 | steven.daprano | create | |
|