コード例 #1
0
        public void should_interpolate_whole_curve_by_step()
        {
            double step = 0.25;
            SortedDictionary <double, double> interpolatedDictionary = Interpolator.CurveLinearSmoothing(dict, step);

            Assert.IsTrue(interpolatedDictionary[1.25].Equals(12.5) && interpolatedDictionary[1.75].Equals(17));
        }