Changeset 17542
- Timestamp:
- 05/14/20 15:39:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/Interval.cs
r17505 r17542 46 46 /// <param name="upperBound">Upper bound of the interval</param> 47 47 public Interval(double lowerBound, double upperBound) { 48 if (lowerBound > upperBound)49 throw new ArgumentException("lowerBound must be smaller than or equal to upperBound.");50 51 48 if (lowerBound.IsAlmost(upperBound)) { 52 49 //If the bounds go over zero … … 63 60 } 64 61 62 if (lowerBound > upperBound) 63 throw new ArgumentException("lowerBound must be smaller than or equal to upperBound."); 64 65 65 this.LowerBound = lowerBound; 66 66 this.UpperBound = upperBound; … … 77 77 return false; 78 78 } 79 80 79 81 80 82 public override string ToString() {
Note: See TracChangeset
for help on using the changeset viewer.