check_probability_distribution_nonnegative_age_distributions#

check_probability_distribution_nonnegative_age_distributions(location, arr)[source]#

Check that each population age distribution has all non negative values.

Parameters:
  • location (json) – the json object with location data

  • arr (list) – the list of population age distributions

Returns:

[True, None] if the sum of the probability distribution is equal to 1 within the tolerance level. [False, str] else. The returned str is the error message with some information about the check.