Struct DiversityMaintenanceService

Struct Documentation

struct dish2::DiversityMaintenanceService

Prevents any one originally-generated ancestor from sweeping the population, preserving deep phylogenetic diversity.

Counts cells that descend from each originally-generated ancestor. If more than DIVERSITY_MAINTENANCE_PREVALENCE of cells descend from a single originally-generated ancestor, decay their resource stockpiles. The magnitude of this effect increases with excess prevalence.

Public Static Functions

bool ShouldRun(const size_t update)
template<typename ThreadWorld>
void DoService(ThreadWorld &thread_world, const size_t)