code: public static void computeAndSaveMeanValues(List<Integer> values, Path filePath, String chromosome,
                                                  int chunkSize, ChunkFrequencyManager chunkFrequencyManager)
              throws IOException {
          if (chromosome != null && values != null) {
              // compute mean values and save into the DB
              List<Integer> meanValues = new ArrayList<>(values.size());
              for (int v : values) {
                  meanValues.add(v / chunkSize);
              }
              chunkFrequencyManager.insert(filePath, chromosome, meanValues);
          }
      }
docs: Compute the mean values for an array and save them into the database using the ChunkFrequencyManger.
  The array contains the total sum (counting) for each chunk. One element per chunk, and the values
  have to be divided by the chunk size in order to compute the mean values.
  
  @param values        Array of values, one value per chunk
  @param filePath      File target
  @param chromosome    Chromosome target
  @param chunkSize     Size of chunk, it will be used to compute the mean value for each chunk
  @param chunkFrequencyManager     ChunkFrequencyManager to insert mean values to the database