egttools.plotting.helpers

Helper functions for producing plots on simplexes

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.

calculate_stability

Calculates the stability of the roots.

calculate_stationary_points

Finds the roots of f (the points where the gradient is 0), given a number of points.

check_if_point_in_unit_simplex

Checks if a point (in barycentric coordinates) is inside the unit simplex.

find_roots_in_discrete_barycentric_coordinates

Searches for the roots inside the simplex and returns them in barycentric coordinates.

find_where_point_is_in_simplex

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

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.

root

Find a root of a vector function.

sample_simplex

Transforms a state index into a vector.

simplex_iterator

Systematically iterates through a lattice of points on the 2-simplex.

xy_to_barycentric_coordinates

Transforms cartesian into barycentric coordinates.