egttools.plotting.simplex2d

Functions

add_arrow

add an arrow to a line.

barycentric_to_xy_coordinates

Transforms barycentric into cartesian coordinates.

calculate_nb_states

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

find_where_point_is_in_simplex

Finds in which part of the 2D simplex the point is.

odeint

Integrate a system of ordinary differential equations.

perturb_state

Produces a number of points in the simplex close to the state.

perturb_state_discrete

Produces a number of points in the simplex close to the state.

sample_simplex

Transforms a state index into a vector.

sample_unit_simplex

Samples uniformly at random the unit simplex with nb_strategies dimensionse.

xy_to_barycentric_coordinates

Transforms cartesian into barycentric coordinates.

Classes

Circle

A circle patch.

Simplex2D

Plots a 2-dimensional simplex in a cartesian plane.

TypeVar

Type variable.