Updated DiscreteDistribution calculation.