UNPKG

highest-averages

Version:

Zero-dependency and extensible set of highest averages methods for allocating seats in a parliament. ### Install ```shell npm i highest-averages ``` ### Pure Example - Define the candidates with their vote ```typescript const a = new Candidate('A', 200) c

13 lines (12 loc) 492 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HuntingtonHill = void 0; require("./extensions/array_extensions"); const highest_average_1 = require("./highest_average"); const huntington_hill_divisor_1 = require("./divisors/huntington_hill_divisor"); class HuntingtonHill extends highest_average_1.HighestAverage { constructor() { super((new huntington_hill_divisor_1.HuntingtonHillDivisor)); } } exports.HuntingtonHill = HuntingtonHill;