added function to update denominator of DistributionInt/Long
updated metric comparison logic