public bool isValid() { // Handle rounding return Math.Abs(1 - distribution.getSum()) <= ProbabilityModel.DEFAULT_ROUNDING_THRESHOLD; }