code: def median_temporal_distances(self, min_n_boardings=None, max_n_boardings=None):
          
          if min_n_boardings is None:
              min_n_boardings = 0
  
          if max_n_boardings is None:
              max_n_boardings = self.max_trip_n_boardings()
              if max_n_boardings is None:
                  max_n_boardings = 0
  
          median_temporal_distances = [float('inf') for _ in range(min_n_boardings, max_n_boardings + 1)]
          for n_boardings in range(min_n_boardings, max_n_boardings + 1):
              simple_analyzer = self.get_time_profile_analyzer(n_boardings)
              median_temporal_distances[n_boardings] = simple_analyzer.median_temporal_distance()
          return median_temporal_distances
docs: Returns
          -------
          mean_temporal_distances: list
              list indices encode the number of vehicle legs each element
              in the list tells gets the mean temporal distance