コード例 #1
0
        public void CalcVariations()
        {
            Variations = null;
            if (MeasureResultsTopdown.Count != MeasureResultsUpwards.Count)
            {
                return;
            }

            Variations = new Variations();
            int points = MeasureResultsUpwards.Count;

            for (int i = 0; i < points; i++)
            {
                int percent = MeasureResultsUpwards[i].PercentRange;

                // if (percent == 0 || percent == 100)
                //     continue; // Для точек 0% и 100% вариация не вычисляется
                var pointUp   = MeasureResultsUpwards[i];
                var pointDown = (MeasureResultsTopdown.GetCheckPointByPercent(percent));

                var point = new VariationPoint(percent, pointUp, pointDown, RangeMin, RangeMax, ClassPrecision, MarginCoefficient);
                Variations.Add(point);
            }
        }
コード例 #2
0
        //public VariationPoint this[int index]
        //{
        //    get { return variationPoints[index]; }
        //}

        public void Add(VariationPoint point)
        {
            variationPoints.Add(point);
        }