Module: compute/socialChoiceMethods/dHondt

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

Run the d'Hondt / Jefferson method of apportionment and return an allocation of seats.
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) dHondtMetadata :object

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