bayesplain.core.gamma_poisson.validate_events¶ bayesplain.core.gamma_poisson.validate_events(events, exposure)[source]¶ Check that an events/exposure pair describes something observable. Parameters:¶ events : int¶Number of events counted. Must be a non-negative whole number. exposure : float¶How much was watched: time, population, distance. Must be positive. Returns:¶ (events, exposure) as (int, float). Return type:¶ tuple Raises:¶ ValueError – With a message that says what is wrong in plain terms.