code: public double[] getCalibrationData() {
          if (calibrationType == MEAN) {
              double[] meanArray = new double[1];
              meanArray[0] = mean;
              return meanArray;
          } else {
              double[] calibrationData = new double[calibrationDataSize];
              int index = 0;
              for (int i = 0; i < data.length; i++) {
                  if (calibrationFlag[i]) {
                      calibrationData[index] = data[i];
                      index++;
                  }
              }
              return calibrationData;
          }
      }
docs: /* returns the data array that must be calibrated.