egttools

The egttools package implements methods to study evolutionary dynamics.

Functions

calculate_nb_states

Calculates the number of states (combinations) of the members of a group in a subgroup.

calculate_state

This function converts a vector containing counts into an index.

calculate_strategies_distribution

Calculates the average frequency of each strategy available in the population given the stationary distribution.

sample_simplex

Transforms a state index into a vector.

sample_unit_simplex

Samples uniformly at random the unit simplex with nb_strategies dimensionse.

Classes

Random

Random seed generator.

egttools.analytical

API reference documentation for sed_analytical submodule.

egttools.behaviors

API reference documentation for behaviors submodule.

egttools.datastructures

Custom data structures used to store data from numerical simulations.

egttools.distributions

Helpful implementations of stochastic distributions.

egttools.games

API reference documentation for the games submodule.

egttools.helpers

Set of helper functions that can be useful for obtaining analytical results, simulations or for plotting.

egttools.numerical

The numerical module contains functions and classes to simulate evolutionary dynamics in finite populations.

egttools.plotting

API reference documentation for the plotting submodule.

egttools.utils

This python module contains some utility functions to find saddle points and plot gradients in 2 player, 2 strategy games.