egttools

The egttools package implements methods to study evolutionary dynamics.

Functions

calculate_nb_states

Calculates the number of possible states in a discrete simplex.

calculate_state

Converts a discrete population configuration into a unique index.

calculate_strategies_distribution

Calculates the average frequency of each strategy given a stationary distribution.

files

Get a Traversable resource from a package

is_blas_lapack_enabled

Check if EGTtools was compiled with BLAS/LAPACK acceleration.

is_openmp_enabled

Check if EGTtools was compiled with OpenMP support.

sample_simplex

Converts a state index into a group composition vector.

sample_unit_simplex

Samples a continuous strategy composition uniformly at random from the unit simplex.

show_build_info

Nicely print the EGTtools build information.

analytical

API reference documentation for the analytical submodule.

behaviors

API reference documentation for behaviors submodule.

datastructures

Custom data structures used to store data from numerical simulations.

distributions

Helpful implementations of stochastic distributions.

games

API reference documentation for the games submodule.

helpers

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

numerical

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

plotting

API reference documentation for the plotting submodule.

utils

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