The deme of K kept its population at 9807 until 9387.4 generations ago, when a linear change ensued until 4761.87, to size 6826. Subsequently, a exponential change changed the numbers to 6289 individuals by 4297.2. Starting from 4297.2, the population has seen a change from 6289 to 4497 at a linear pace, continuing to this day.
time_units: generations
demes:
  - name: K
    start_time: .inf
    epochs:
      - start_size: 9807
        end_time: 9387.4
      - start_size: 9807
        end_size: 6826
        end_time: 4761.87
        size_function: linear
      - start_size: 6826
        end_time: 4297.2
        end_size: 6289
        size_function: exponential
      - end_time: 0
        start_size: 6289
        end_size: 4497
        size_function: linear