wradlib.util.prob_round

Contents

wradlib.util.prob_round#

wradlib.util.prob_round(x, *, precision=0)[source]#

Round the float number x to the lower or higher decimal number randomly by following a binomial distribution

Parameters:
  • x (float) – number to be rounded

  • precision (int) – number of decimals for the rounding