Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Elections
#3
Not sure how to upload a file, I can't find a link to do that. Just copied the whole file for u. Cheers.
Note: Each line represents one person's vote for different candidates.

Criteria for formal and informal vote:

Formal votes:
  • "3, 5, 0, 2" normalises to [0.3, 0.5, 0.0, 0.2].

  • "3, 5, 0" normalises to [0.375, 0.625, 0.000, 0.000].

  • "3, 5" normalises to [0.375, 0.625, 0.000, 0.000].

  • "3" normalises to [1.0, 0.0, 0.0, 0.0].

  • ",3, 5" normalises to [0.000, 0.375, 0.625, 0.000].

  • ",3,, 5" normalises to [0.000, 0.375, 0.000, 0.625].

  • " ,, , 3" normalises to [0.0, 0.0, 0.0, 1.0].
Informal votes:
  • With n candidates, any paper containing more than n votes is informal.

  • Any paper casting no votes is informal, e.g.
    • ""
    • ","
    • "0,0,0,0"

  • Any paper without proper separators (i.e. commas) is informal, e.g. "1 2".
  • Negative votes are not allowed, e.g. "5, -6, 4" is informal.
  • Floating point votes are not allowed, e.g. "5, 6.7, 4" is informal.
  • Any paper containing anything other than whitespace, digits, and commas is inform
Reply


Messages In This Thread
Elections - by nacerr - Apr-21-2017, 07:35 AM
RE: Elections - by idontreallywolf - Apr-21-2017, 08:35 AM
RE: Elections - by nacerr - Apr-21-2017, 09:19 AM
RE: Elections - by nacerr - Apr-21-2017, 01:40 PM
RE: Elections - by PythonHatesMe - Apr-25-2017, 06:24 AM
RE: Elections - by nacerr - Apr-25-2017, 06:27 AM
RE: Elections - by PythonHatesMe - Apr-25-2017, 06:40 AM
RE: Elections - by nacerr - Apr-25-2017, 06:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020