egttools.plotting.helpers.sample_simplex¶
- sample_simplex(index: int, pop_size: int, nb_strategies: int) numpy.ndarray[numpy.uint64[m, 1]] ¶
Transforms a state index into a vector.
- Parameters
- Returns
Vector with the sampled state.
- Return type
numpy.ndarray[numpy.int64[m, 1]]
See also
egttools.numerical.calculate_state
,egttools.numerical.calculate_nb_states