Skip to content
Snippets Groups Projects
Commit 87da9378 authored by Gabrielle Van De Vijver's avatar Gabrielle Van De Vijver Committed by Balthazar Wilson
Browse files

rectification scores Borda

parent 364f9a80
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ func BordaSWF(p Profile) (count Count, err error){ ...@@ -6,7 +6,7 @@ func BordaSWF(p Profile) (count Count, err error){
nAlts := len(p[0]) nAlts := len(p[0])
for _, row := range p{ for _, row := range p{
for i:=0; i<nAlts;i++{ for i:=0; i<nAlts;i++{
count[row[i]]+=nAlts-i count[row[i]]+=nAlts-1-i
} }
} }
return count,nil 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