Also, if you have probas [0.2, 0.3, 0.5] your resolution must be 0.1, so it's not just the minimum probbility you need.