| Home | Trees | Indices | Help |
|---|
|
|
Implement all of the functions for computing the Condorcet winner and lower bound.
| Functions | |||
numpy.matrix
|
|
||
| number |
|
||
| number |
|
||
| Variables | |
__package__ =
|
|
| Function Details |
Build and return a Condorcet matrix from an Election. This assumes the children of root are the integers 1, 2, ..., k. The matrix returned is 0-based.
|
Compute and return the Condorcet winner from the Condorcet matrix.
|
Return a lower bound on the Condorcet margin. This is the minimum pair-wise margin between the Condorcet winner and the other candidates. If there is no Condorcet winner, then 0 is returned.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Nov 23 18:31:26 2011 | http://epydoc.sourceforge.net |