-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed unit tests, enhanced STAR voting tie handling, added new Condorcet
cycle detection function.
- Loading branch information
Showing
16 changed files
with
891 additions
and
795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
import numpy as np | ||
from votesim.votemethods.ranked import borda | ||
ranks = [[3, 2, 1], | ||
[0, 1, 0], | ||
[1, 3, 2], | ||
[0, 1, 0], | ||
[1, 3, 2],] | ||
|
||
ranks = np.array(ranks) | ||
w,t, o = borda(ranks) | ||
def test(): | ||
ranks = [[3, 2, 1], | ||
[0, 1, 0], | ||
[1, 3, 2], | ||
[0, 1, 0], | ||
[1, 3, 2],] | ||
|
||
ranks = np.array(ranks) | ||
w,t, o = borda(ranks) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.