Description Usage Arguments Value
View source: R/voteByUtilNoCumu.R
voteByUtilNoCumu Allocate votes based utility values, no cumulation is allowed.
Voters allocate their votes based on their preference prdering as determined by their utility function.
They are not allowd to vote for a competitor or alternative more than once. This function is usually not called directly
but is wrapped by votersVote
.
1 2 3 4 | voteByUtilNoCumu(
votersUtilsForAltsVoteByUtilNoCumu,
numVotesPerVoterVoteByUtilNoCumu
)
|
votersUtilsForAltsVoteByUtilNoCumu |
numVoters by numAlts matrix of utility values. |
numVotesPerVoterVoteByUtilNoCumu |
the number of votes each voter is allowed to cast. This function does not allow cumulation of votes. |
outVotesVoteByUtilNoCumu A 1 x numberOfAlts matrix displaying the number of votes cast for each alternative.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.