Definite Majority Choice: Difference between revisions
→Range voting implementation: wikitables
No edit summary |
Psephomancy (talk | contribs) (→Range voting implementation: wikitables) |
||
Line 15:
Quick example: A:99, B:98, C:50, D:25, E:25 would be counted as
A>B>C>D=E
{| class="wikitable" border="1"
|
|-
! A
|-
! B
|-
! C
|-
! D
|-
! E
|-
! F
|}
Line 88 ⟶ 95:
The pairwise matrix, with the victorious and approval scores highlighted:
<table
<tr align="center"><td colspan=2 rowspan=2></td><th colspan=5>against</th></tr>
<tr align="center"><
<tr align="center">
<th rowspan=5>for</th>
<
<td bgcolor="yellow">645</td>
<td class="loss">458</td>
Line 101 ⟶ 108:
</tr>
<tr align="center">
<
<td bgcolor="yellow">463</td>
<td bgcolor="yellow">410</td>
Line 109 ⟶ 116:
</tr>
<tr align="center">
<
<td class="loss">460</td>
<td class="loss">460</td>
Line 117 ⟶ 124:
</tr>
<tr align="center">
<
<td class="loss">436</td>
<td bgcolor="yellow">609</td>
Line 125 ⟶ 132:
</tr>
<tr align="center">
<
<td class="loss">410</td>
<td class="loss">298</td>
Line 138 ⟶ 145:
After reordering the pairwise matrix, it looks like this:
<table
<tr align="center"><td colspan=2 rowspan=2></td><th colspan=5>against</th></tr>
<tr align="center">
<
<
<
<
<
</tr>
<tr align="center">
<th rowspan=5>for</th>
<
<td bgcolor="yellow">708</td>
<td class="loss">410</td>
Line 157 ⟶ 164:
</tr>
<tr align="center">
<
<td bgcolor="yellow">511</td>
<td bgcolor="yellow">645</td>
Line 165 ⟶ 172:
</tr>
<tr align="center">
<
<td class="loss">460</td>
<td class="loss">460</td>
Line 173 ⟶ 180:
</tr>
<tr align="center">
<
<td bgcolor="yellow">623</td>
<td bgcolor="yellow">463</td>
Line 181 ⟶ 188:
</tr>
<tr align="center">
<
<td class="loss">311</td>
<td class="loss">436</td>
Line 258 ⟶ 265:
X2 > X4 >> X1 > X3
the following votes would be added into the pairwise array:
{| class="wikitable" border="1"
|
|-
! X1
| 0 || 0 || 1 || 0
|-
! X2
| 1 || 1 || 1 || 1
|-
! X3
| 0 || 0 || 0 || 0
|-
! X4
| 1 || 0 || 1 || 1
|}
|