Open magwas opened 5 years ago
grab
@magwas looses means the initial loose or the transitive closure or the normalized one here?
after transitive closure. This is the last step of the calculation.
@magwas Are the loses equal inside a rank? e.g:
In this case (A, C) == (A, D) == (B, C) == (B, D) or can they be different by pairs?
This particular behaviour is about the information contained in the winners list. Computing the winners is another issue. Here we just make sure that for a candidate, the number of beats are there. If you consider this result: https://civs.cs.cornell.edu/cgi-bin/results.pl?id=E_68549fe6e45da391 the numbers 137-57 for Elizabeth warren is what we are looking for. it is the number of beats betwen Sanders and her forward and backwards. Otherwise the other issue is about winners() and rank_candidates() here: https://github.com/andrewcmyers/civs/blob/master/cgi-bin/beatpath2.pm
and yes, I have to concentrate more on providing all the domain context in the issues. Working on it for the next project.
Behaviour: Vote/Compute vote results;the winners list contains the looses to the first one
@tested_feature("Vote")
@tested_operation("Compute vote results")
@tested_behaviour("the winners list contains the looses to the first one")
for each winner (but the first one) the beat ratio to the first one(s) is given
Deviation in model