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) • 425 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DHondt = void 0;
require("./extensions/array_extensions");
const highest_average_1 = require("./highest_average");
const dhondt_divisor_1 = require("./divisors/dhondt_divisor");
class DHondt extends highest_average_1.HighestAverage {
constructor() {
super((new dhondt_divisor_1.DHondtDivisor));
}
}
exports.DHondt = DHondt;