egttools.analytical.sed_analytical

This python module contains the necessary functions to calculate analytically the evolutionary dynamics in Infinite and Finite populations on 2-player games.

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.

eig

Solve an ordinary or generalized eigenvalue problem of a square matrix.

replicator_equation

Produces the discrete time derivative of the replicator dynamics

replicator_equation_n_player

Replicator dynamics in N-player games

sample_simplex

Transforms a state index into a vector.

warn

Issue a warning, or maybe ignore it or raise an exception.

Classes

StochDynamics

A class containing methods to calculate the stochastic evolutionary dynamics of a population.

csr_matrix

Compressed Sparse Row matrix

lil_matrix

Row-based list of lists sparse matrix

permutations

Return successive r-length permutations of elements in the iterable.