This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients gregory.p.smith, ncoghlan, oscarbenjamin, steven.daprano, wolma
Date 2014-02-02.11:55:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:18steven.dapranosetrecipients: + steven.daprano, gregory.p.smith, ncoghlan, oscarbenjamin, wolma
2014-02-02 11:55:18steven.dapranosetmessageid: <>
2014-02-02 11:55:18steven.dapranolinkissue20479 messages
2014-02-02 11:55:17steven.dapranocreate