An implementation of algorithm which adjusts groups of probabilities into a certain range.