public void Test()
        {
            DifferencesIndividualShewhartAlgorithm<int> algorithm = new DifferencesIndividualShewhartAlgorithm<int>();
            TestShewhartChartBuilder builder = new TestShewhartChartBuilder();
            algorithm.Calculate(wrappedMeasurements, builder);
            TestShewhartResult result = builder.Build();

            AssertWithPrecision(0.3, result.Points[0].Value);
            AssertWithPrecision(0.5, result.Points[3].Value);
            AssertWithPrecision(0.1, result.Points[8].Value);

            AssertWithPrecision(0.38, result.CentralLine);
            AssertWithPrecision(1.24, result.UpperControlLevel);
            AssertWithPrecision(0, result.LowerControlLevel);
        }
        public void Test()
        {
            AverageValuesIndividualShewhartAlgorithm<int> algorithm = new AverageValuesIndividualShewhartAlgorithm<int>();
            TestShewhartChartBuilder builder = new TestShewhartChartBuilder();
            algorithm.Calculate(wrappedMeasurements, builder);
            TestShewhartResult result = builder.Build();

            AssertWithPrecision(3.45, result.CentralLine);
            AssertWithPrecision(4.46, result.UpperControlLevel);
            AssertWithPrecision(2.44, result.LowerControlLevel);

            AssertWithPrecision(2.9, result.Points[0].Value);
            AssertWithPrecision(4.3, result.Points[3].Value);
            AssertWithPrecision(3.6, result.Points[8].Value);
        }