Changeset 16646
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval.cs
r16631 r16646 124 124 125 125 double min = Math.Min(Math.Min(v1, v2), Math.Min(v3, v4)); 126 double max = Math.Max(Math.M in(v1, v2), Math.Max(v3, v4));126 double max = Math.Max(Math.Max(v1, v2), Math.Max(v3, v4)); 127 127 return new Interval(min, max); 128 128 } -
trunk/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis-3.4/IntervalTest.cs
r16631 r16646 51 51 //([-1, 1] * [0, 3]) * [-2, 2] = [-6, 6] 52 52 Assert.AreEqual<Interval>(Interval.Multiply(Interval.Multiply(a, c), b), new Interval(-6, 6)); 53 54 // [-2, 0] * [-2, 0] = [0, 4] 55 Assert.AreEqual<Interval>(new Interval(0, 4), Interval.Multiply(new Interval(-2, 0), new Interval(-2, 0))); 53 56 } 54 57
Note: See TracChangeset
for help on using the changeset viewer.