Function necsim::inverseSpeciation

Function Documentation

long double necsim::inverseSpeciation(const long double &speciation_rate, const unsigned long &no_generations)

Calculates the random number required for speciation to occur in exactly n generations This is equivalent to calculating 1 - the probability that speciation does not occur in n generations.

Return
Parameters
  • speciation_rate: the speciation rate
  • no_generations: the number of generations speciation can occur over