Euclidean#
- generate_attributes_votes(num_agents: int | None = None, dim: int = 2, space: str = 'uniform', **_kwargs) list[list[int]] [source]#
Generate votes based on attributes model.
- Parameters:
num_agents (int) – Number of agents.
dim (int) – Dimension of the space.
space (str) – Distribution of the agents.
_kwargs
- Returns:
Votes
- Return type:
list[list[int]]
- generate_euclidean_votes(num_agents: int | None = None, dim: int = 2, space: str = 'uniform', **_kwargs) list[list[int]] [source]#
Generate votes based on Euclidean model.
- Parameters:
num_agents (int) – Number of agents.
dim (int) – Dimension of the space.
space (str) – Distribution of the agents.
_kwargs
- Returns:
Votes
- Return type:
list[list[int]]
- generate_expectation_votes(num_agents: int | None = None, dim: int = 2, space: str = 'uniform', std: float = 0.1, **_kwargs) list[list[int]] [source]#
Generate votes based on reverse Euclidean model.
- Parameters:
num_agents (int) – Number of agents.
dim (int) – Dimension of the space.
space (str) – Distribution of the agents.
std (float) – Standard deviation of the agents.
_kwargs
- Returns:
Votes
- Return type:
list[list[int]]
- generate_fame_votes(num_agents: int | None = None, dim: int = 2, space: str = 'uniform', radius: float = 0.1, **_kwargs) list[list[int]] [source]#
Generate votes based on fame model (also known as radius model).
- Parameters:
num_agents (int) – Number of agents.
dim (int) – Dimension of the space.
space (str) – Distribution of the agents.
radius (float) – Radius of the agents.
_kwargs
- Returns:
Votes
- Return type:
list[list[int]]
- generate_reverse_euclidean_votes(num_agents: int | None = None, dim: int = 2, space: str = 'uniform', proportion: float = 0.5, **_kwargs) list[list[int]] [source]#
Generate votes based on expectation model.
- Parameters:
num_agents (int) – Number of agents.
dim (int) – Dimension of the space.
space (str) – Distribution of the agents.
proportion (float) – Proportion of the agents that will have the reverse order.
_kwargs
- Returns:
Votes
- Return type:
list[list[int]]