Module: compute/socialChoiceMethods/allocatedScore

(require("compute/socialChoiceMethods/allocatedScore"))(votes, socialChoiceOptions) → {types.typesSocialChoice.socialChoiceResults}

This method has rounds. Each round, the votes are weighted based on the previous round. Weights start at 1. Each round, the candidate with the highest weighted tally is selected. Then the scores for the candidate are sorted. The voters' weight is spent, starting from the top scores. Weight is spent until the weight of voters included is equal to 1/seats, which is the quota.
Parameters:
Name Type Description
votes types.typesVotes.votes The object for vote data.
socialChoiceOptions types.typesSocialChoice.socialChoiceOptions options to specify a social choice function.
Source:
Returns:
- the results returned from a social choice function.
Type
types.typesSocialChoice.socialChoiceResults

Members

(static, constant) allocatedScoreMetadata :object

an object: this function and descriptions of its name, input, and output
Type:
  • object
Source: