Ejemplo n.º 1
0
 public TestResults(double rangeMin, double rangeMax, PressureUnitsEnum pressureUnits, double classPrecision, double marginCoefficient = 0.8)
 {
     RangeMin              = rangeMin;
     RangeMax              = rangeMax;
     PressureUnits         = pressureUnits;
     ClassPrecision        = classPrecision;
     MarginCoefficient     = marginCoefficient;
     MeasureResultsUpwards = new MeasureResults();
     MeasureResultsTopdown = new MeasureResults();
 }
Ejemplo n.º 2
0
        private void AddMeasureTestPoint(double point, MeasureResults measureResults,
                                         CancellationToken cancellationToken, IProgress <int> progress)
        {
            ICheckPoint checkPoint = measurmentTools.GetCheckPoint(point, rangeMin_Pa, rangeMax_Pa, absoluteType, pressureUnits,
                                                                   classPrecision, marginCoefficient, cancellationToken);

            if (measureResults == null)
            {
                measureResults = new MeasureResults();
            }
            measureResults.Add(checkPoint);
            UpdResultsEvent?.Invoke(this, new EventArgs());
            progressValue += deltaProgress;
            progress.Report((int)progressValue);
            waitContinue?.Invoke(cancellationToken);
        }