egttools.plotting.simplex2d.sample_unit_simplex

sample_unit_simplex(nb_strategies: int) numpy.ndarray[numpy.float64[m, 1]]

Samples uniformly at random the unit simplex with nb_strategies dimensionse.

Parameters

nb_strategies (int) – Number of strategies.

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, egttools.numerical.sample_simplex