def _calculate_frontiers(clusters):
  """Calculates the frontiers between the clusters

  Returns two float values specifying these frontiers
  """
  frontier_1 = (min(clusters[1]) + max(clusters[0])) / 2
  frontier_2 = (min(clusters[2]) + max(clusters[1])) / 2

  return frontier_1, frontier_2