From 93cb72c33a85fa4453519c5cb3048ee6cfe23fea Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 27 Sep 2021 19:02:30 +1000 Subject: [PATCH] Update terminology and remove "stratify (floor)" support Cincinnati -> Inclusive Hare (previous usage was erroneous/nonstandard) Every n-th ballot -> Cincinnati Remove "stratify (floor)" as it is not in contemporary use --- docs/options.md | 7 ++--- html/index.html | 10 +++---- html/index.js | 6 ++-- src/cli/stv.rs | 10 +++---- src/stv/gregory/mod.rs | 2 +- src/stv/mod.rs | 54 +++++++++++++++++------------------ src/stv/sample.rs | 16 +++++------ tests/tests_impl/cambridge.rs | 6 ++-- 8 files changed, 55 insertions(+), 56 deletions(-) diff --git a/docs/options.md b/docs/options.md index f493a23..59d7b87 100644 --- a/docs/options.md +++ b/docs/options.md @@ -97,8 +97,8 @@ Other Gregory methods are supported, but not recommended: Random sample methods are also supported, but also not recommended: -* *Cincinnati (inclusive sample)*: During surplus transfers, a subset of the elected candidate's ballot papers, equal in size to the surplus, is examined. * *Hare (exclusive sample)*: During surplus transfers, a subset of the ballot papers received in the last transfer, equal in size to the surplus, is examined. +* *Inclusive Hare (sample)*: During surplus transfers, a subset of the elected candidate's ballot papers, equal in size to the surplus, is examined. The use of a random sample method requires *Normalise ballots* to be enabled, and will usually be used with a *Quota criterion* set to *>=*. @@ -128,10 +128,9 @@ When *Surplus method* is set to *Meek method*, this option controls how candidat When *Surplus method* is set to a random sample method, this option controls which subset of ballot papers is selected for transfer during surplus distributions: -* *Stratify (LR)* (default): The candidate's ballot papers are first stratified into subparcels according to next available preference, and an equal proportion of each subparcel is transferred, with the subset transferred comprising the ballot papers in each subparcel most recently received by the candidate. In the calculation of proportions, the largest remainders are rounded up so there is no loss by fraction. This is the method specified by the [*Electoral Act 1992* (Ireland)](http://www.irishstatutebook.ie/eli/1992/act/23/section/121/enacted/en/html#sec121). -* *Stratify (floor)*: The same as *Stratify (LR)*, except in the calculation of proportions, all remainders are disregarded, and the difference is lost by fraction. +* *Stratify* (default): The candidate's ballot papers are first stratified into subparcels according to next available preference, and an equal proportion of each subparcel is transferred, with the subset transferred comprising the ballot papers in each subparcel most recently received by the candidate. In the calculation of proportions, the largest remainders are rounded up so there is no loss by fraction. This is the method specified by the [*Electoral Act 1992* (Ireland)](http://www.irishstatutebook.ie/eli/1992/act/23/section/121/enacted/en/html#sec121). * *By order*: The subset transferred comprises the ballot papers most recently received by the candidate. -* *Every n-th ballot*: The subset is selected using the deterministic method used in [Cambridge, Massachusetts](https://web.archive.org/web/20081118104049/http://www.fairvote.org/media/1993countmanual.pdf) (derived from Article IX of the former 1938 Cincinnati *Code of Ordinances*). +* *Cincinnati*: The subset is selected using the deterministic method used in [Cambridge, Massachusetts](https://web.archive.org/web/20081118104049/http://www.fairvote.org/media/1993countmanual.pdf) (derived from Article IX of the former 1938 Cincinnati *Code of Ordinances*). In any case, the subset selected depends on the order of ballot papers in the BLT file, and is independent of the *Random seed* option. diff --git a/html/index.html b/html/index.html index f574107..118e91a 100644 --- a/html/index.html +++ b/html/index.html @@ -115,8 +115,8 @@ - +