Message210107
Well, I was thinking about frequencies (ints) when suggesting
for x,m in data.items():
T = _coerce_types(T, type(x))
n, d = exact_ratio(x)
partials[d] = partials_get(d, 0) + n*m
in my previous message. To support weights (float or Rational) this would have to be more sophisticated.
Wolfgang |
|
Date |
User |
Action |
Args |
2014-02-03 10:09:31 | wolma | set | recipients:
+ wolma, gregory.p.smith, ncoghlan, steven.daprano, serhiy.storchaka, oscarbenjamin |
2014-02-03 10:09:31 | wolma | set | messageid: <1391422171.7.0.161204942639.issue20479@psf.upfronthosting.co.za> |
2014-02-03 10:09:31 | wolma | link | issue20479 messages |
2014-02-03 10:09:31 | wolma | create | |
|