grantjenks / python-runstats

Python module for computing statistics and regression in a single pass.
http://grantjenks.com/docs/runstats/
Other
96 stars 19 forks source link

Added weighting feature #15

Closed FlorianWilhelm closed 7 years ago

FlorianWilhelm commented 7 years ago

This should resolve issue #14.

grantjenks commented 7 years ago

Looks great. Just one thing. Could you change the "isinstance(that, Number)" check to simply "that = float(that)" to match the behavior of the "push" method and maintain the internal values as floats. I wouldn't want a decimal or some user-defined type to creep in there.

FlorianWilhelm commented 7 years ago

@grantjenks Fixed it.