- Timestamp:
- 12/19/18 14:50:56 (6 years ago)
- Location:
- trunk/HeuristicLab.Problems.DataAnalysis
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/branches/2966_interval_calculation/HeuristicLab.Problems.DataAnalysis (added) merged: 16320,16322-16323,16326-16327,16363-16364,16383,16404,16406
- Property svn:mergeinfo changed
-
trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval.cs
r16405 r16407 54 54 55 55 public static Interval GetInterval(IEnumerable<double> values) { 56 if (values == null) throw new ArgumentNullException(" The given value set is not defined.");57 if (!values.Any()) throw new ArgumentException($"No val id values are present.");56 if (values == null) throw new ArgumentNullException("values"); 57 if (!values.Any()) throw new ArgumentException($"No values are present."); 58 58 59 59 var min = double.MaxValue; … … 76 76 return false; 77 77 78 return this.UpperBound.IsAlmost(other.UpperBound) && this.LowerBound.IsAlmost(other.LowerBound); 78 return (UpperBound.IsAlmost(other.UpperBound) || (double.IsNaN(UpperBound) && double.IsNaN(other.UpperBound))) 79 && (LowerBound.IsAlmost(other.LowerBound) || (double.IsNaN(LowerBound) && double.IsNaN(other.LowerBound))); 79 80 } 80 81
Note: See TracChangeset
for help on using the changeset viewer.