boostorg / accumulators

An awesome library from Boost
http://boost.org/libs/accumulators
22 stars 54 forks source link

check if probability is in [0, 1] #10

Open e-kwsm opened 7 years ago

e-kwsm commented 7 years ago
yuvalif commented 5 years ago

@e-kwsm don't think you can introduce exceptions into existing code like that. also, there is the runtime check cost. Instead, would recommend adding documentation on the behavior in case of invalid probability values.