code: public void setStat(double[] dataValue, int calibrationType, boolean[] calibrate) {
          this.data = dataValue;
          this.calibrationType = calibrationType;
          this.calibrationFlag = calibrate;
  
          calibrationDataSize = 0;
          for (int i = 0; i < this.calibrationFlag.length; i++) {
              if (calibrate[i]) {
                  calibrationDataSize++;
              }
          }
  
          calculateMean();
          findMin();
          findMax();
  //        setDeviation();
      }
docs: /* Sets the parameter values, the type of calibration, and the calibration flag.
  Also, the mean of the parameter values is calculated, and the max and min value
  of the parameter values are determined.