(require("compute/socialChoiceMethods/sainteLague"))(votes, socialChoiceOptions) → {types.typesSocialChoice.socialChoiceResults}
Run the Sainte-Lague / Webster 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. |
Returns:
- the results returned from a social choice function.
- Type
- types.typesSocialChoice.socialChoiceResults
Members
(static, constant) sainteLagueMetadata :object
an object: this function and descriptions of its name, input, and output
Type:
- object