code: public double getMedian() {
          if (DATA_LIST.size() > 2) {
              sortData();
  
              if (sortedList.size() % 2 != 0) {
                  return sortedList.get((sortedList.size() / 2));
              } else {
                  return (sortedList.get(sortedList.size() / 2 - 1) + sortedList.get(sortedList.size() / 2)) / 2.0;
              }
          }
          return 0;
      }
docs: Returns the median of the measured values
  @return the median of the measured values