Mercurial > hg > numerics
changeset 72:06094870fdd7
more stubbing
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 28 Feb 2015 17:05:04 -0800 |
parents | 9a2674b32754 |
children | 8e93d7357c6b |
files | numerics/histogram.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/numerics/histogram.py Sat Feb 28 17:02:20 2015 -0800 +++ b/numerics/histogram.py Sat Feb 28 17:05:04 2015 -0800 @@ -41,7 +41,9 @@ def add(self, *values): """add values to the histogram""" for value in values: - raise NotImplementedError('TODO') # -> record TODO items + for vmin, vmax in self.data.keys(): + if vmin <= value <= vmax: + self.data[(vmin, vmax)].append(value) def __iadd__(self, value): self.add(value)