code: public void generateValues(double[] values) {
          if (calibrationType == MEAN) {
              generateValues(values[0]);
          } else if (calibrationType == INDIVIDUAL) {
              int index = 0;
              for (int i = 0; i < data.length; i++) {
                  if (calibrationFlag[i]) {
                      data[i] = values[index];
                      index++;
                  }
              }      
              calculateMean();
          } else { // Binary
              int index = 0;
              for (int i = 0; i < data.length; i++) {
                  if (calibrationFlag[i]) {
                      if (values[index] < 0.5) {
                          data[i] = 0;
                      } else {
                          data[i] = 1;
                      }
                      index++;
                  }
              }
              calculateMean();
          }
      }
docs: /* Generates the parameter values based on the new values (values).