Urn#
- generate_urn_votes(num_agents: int | None = None, alpha: int = 0.1, **kwargs) list[list[int]] [source]#
Generates a list of votes based on the urn model.
- Parameters:
num_agents (int) – Number of agents.
alpha (float, optional) – Parameter for the urn model. Default is 0.1.
**kwargs – Additional parameters for customization.
- Returns:
A list of votes.
- Return type:
list[list[int]]