LohseLab / agemo

Laplace transformed coalescence time distributions
http://agemo.readthedocs.io
GNU General Public License v3.0
4 stars 3 forks source link

add in mass migration event #22

Open GertjanBisschop opened 11 months ago

GertjanBisschop commented 11 months ago

As pointed out by @A-J-F-Mackintosh, the currently available Event classes could be made more flexible by adding in a discrete MassMigrationEvent that moves all lineages from one population to another at a discrete point in time.

GertjanBisschop commented 11 months ago

General pattern of _single_step(): as you said in #20 @A-J-F-Mackintosh, this method returns the index of the event, and the new configuration of lineages after a single step. The count essentially tallies the number of ways that the same new configuration can be achieved by combining different lineages. For example a pairwise coalescence event for ['a', 'a', 'a'] will always result in ['aa', 'a']. However, there are 3 different ways of achieving this result.