OptionalunrankedLast?: booleanWhether candidates a ballot leaves unranked are appended to it as one tied bottom tier (default true — the classic "pessimistic" completion of partial ballots). Pass false to score only what voters expressed: unranked candidates then earn nothing from that ballot (no Borda points, no transfers, no last-place counts).
Protected ReadonlyballotsReadonlycandidatesProtected ReadonlyunrankedStatic ReadonlyisStatic ReadonlyneedsStatic ReadonlyneedsReturn a matrix of duels from all the ballots
ProtectedballotsRanking built by repeated wins instead of the method's own full ranking: run the method, record the winning tier, then re-run it restricted to the remaining candidates for the next place, and so on.
Differs from ranking() whenever the method's full ranking disagrees
with how it ranks subsets — e.g. instant runoff orders losers by
elimination time, while iterating re-elects a winner at every place.
Result of the vote. The first item lists the winners of the vote.
For example this ranking means that Bear wins, Sheep is second and Lion third
[ [ 'Bear' ], [ 'Sheep' ], [ 'Lion' ] ]
Return a new instance of the same method restricted to a subset of candidates. Ballots are filtered to remove candidates not in the subset; unranked candidates are NOT appended (preserves only opinions voters expressed).
Wikipedia: Approval voting