docs: def averagingData(array, windowSize=None, averagingType='median'):
      """#TODO: docstring
  
      :param array: #TODO: docstring
      :param windowSize: #TODO: docstring
      :param averagingType: "median" or "mean"
  
      :returns: #TODO: docstring
      """
      assert averagingType in ['median', 'mean']
      if windowSize is None:
          windowSize = int(len(array) / 50) if int(len(array) / 50) > 100 else 100
  
      if averagingType == 'median':
          averagedData = runningMedian(array, windowSize)
      elif averagingType == 'mean':
          averagedData = runningMean(array, len(array), windowSize)
      return averagedData