Comcast / jrugged

A Java libary of robustness design patterns
Apache License 2.0
266 stars 93 forks source link

Remove EmptySampleSetException in favor of return 0 #13

Closed clinedome closed 11 years ago

clinedome commented 11 years ago

Addresses Issue #6 on Comcast/jrugged. Instead of returning an EmptySampleSetException if calling getQuantile or getPercentage when there's no data for the time span, return 0, which is friendlier to humans and machines both.

joercampbell commented 11 years ago

I think that I need to wait till the 3.1 release to merge this in - as it would change the behavior of the system and people that interface with it.