Skip to content
Snippets Groups Projects
Commit 6470238c authored by Gabrielle Van De Vijver's avatar Gabrielle Van De Vijver
Browse files

rectification scores Borda

parent b028a0f1
No related branches found
No related tags found
1 merge request!1Gabrielle
......@@ -6,7 +6,7 @@ func BordaSWF(p Profile) (count Count, err error){
nAlts := len(p[0])
for _, row := range p{
for i:=0; i<nAlts;i++{
count[row[i]]+=nAlts-i
count[row[i]]+=nAlts-1-i
}
}
return count,nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment