The Voters class is used to represent multiple voters at the same time.
# S4 method for Voters initialize(.Object, position, dimension, role, voter_count) Voters(position, dimension, role) as.voters(voter) # S3 method for Voter as.voters(voter)
.Object | The Voters object. |
---|---|
position | A position vector or matrix, either indicating the voter's position once (notwithstanding drift and vibration) or for all voting iterations. |
dimension | Dimensionality of the voters' positions. |
role | (optional) The role of the voter, one of "Normal", "Veto", "AS" and "Random". Can only be used with the |
voter_count | The number of voters. |
voter | Voter object. |
position
A position matrix with dimension * voter_count
columns. There is either one row for fixed positions (notwithstanding drift and vibration), or one row per vote iteration.
dimension
An integer specifying the dimension of each voter's position, defaults to ncol(position) / voter_count
.
role
The role of the voter, one of "AS", "Veto", "Normal" or "Random".
voter_count
The number of voters.