Message289683
It seems to me that the basic Counter class should be left as-is, and if there are specialized methods used for statistics (such as normalize) it should go into a subclass in the statistics module.
The statistics module already uses Counter internally to calculate the mode.
It makes some sense to me for statistics to have a FrequencyTable (and CumulativeFrequencyTable?) class built on top of Counter. I don't think it makes sense to overload the collections.Counter type with these sorts of specialised methods. |
|
Date |
User |
Action |
Args |
2017-03-15 17:25:38 | steven.daprano | set | recipients:
+ steven.daprano, rhettinger, mark.dickinson, pitrou, wolma, josh.r, veky, DavidMertz |
2017-03-15 17:25:38 | steven.daprano | set | messageid: <1489598738.56.0.0947296751662.issue25478@psf.upfronthosting.co.za> |
2017-03-15 17:25:38 | steven.daprano | link | issue25478 messages |
2017-03-15 17:25:38 | steven.daprano | create | |
|