Changeset 17505
- Timestamp:
- 04/10/20 13:31:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/Interval.cs
r17370 r17505 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 using HEAL.Attic;27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis { … … 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 48 51 if (lowerBound.IsAlmost(upperBound)) { 49 52 //If the bounds go over zero … … 60 63 } 61 64 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;
Note: See TracChangeset
for help on using the changeset viewer.