For the K deme, the population size remained at 2942 until 6854.05 generations ago, at which point a linear change took place until 6058.8 generations for size 6778. Afterward, the population saw an exponential change to 962 by 2471.2447. From 2471.2447 generations ago to today, there's been a exponential change from 962 to 7120.
time_units: generations
demes:
  - name: K
    start_time: .inf
    epochs:
      - start_size: 2942
        end_time: 6854.05
      - start_size: 2942
        end_size: 6778
        end_time: 6058.8
        size_function: linear
      - start_size: 6778
        end_time: 2471.2447
        end_size: 962
        size_function: exponential
      - end_time: 0
        start_size: 962
        end_size: 7120
        size_function: exponential