forward-in-time simulation

Thornton KR 2014 A C++ template library for efficient forward-time population genetic simulation of large populations. Genetics 198:157-166.

  • the individual-based method results in the fastest runtime for models involving natural selection
  • the individual-based sampling functions should be considered the default choice for developing custom simulations
  • although slower than the individual-based sampler for models with selected mutations, the gamete-based sampler reflects the original code base of fwdpp
  • this pointer-based structure is perhaps obvious
  • it replaces copying of data with copying of pointers
  • storing pointers to neutral and nonneutral mutations in separate containers typically speeds up the calculation of fitness