The Y deme's size was 4700 until 8344.7 generations ago, when it began a linear change, reaching 9826 individuals by 5383.6. After this period, the population underwent an linear decrease, reaching 4039 individuals by 4223.2. From 4223.2 generations ago to now, the population changed from 4039 to 4705 at a linear rate.
time_units: generations
demes:
  - name: Y
    start_time: .inf
    epochs:
      - start_size: 4700
        end_time: 8344.7
      - start_size: 4700
        end_size: 9826
        end_time: 5383.6
        size_function: linear
      - start_size: 9826
        end_time: 4223.2
        end_size: 4039
        size_function: linear
      - end_time: 0
        start_size: 4039
        end_size: 4705
        size_function: linear