MajorityVotesThenHighestScoreAlgorithm

Represents an algorithm which orders intermediate ranking by descending number of votes, then by highest score (about ties).

Constructors

Link copied to clipboard
constructor(pollAlgorithmParameters: List<PollAlgorithmParameter> = listOf())

Properties

Link copied to clipboard
lateinit var candidates: List<Competitor<S>>

List of candidates, useful to check pre-conditions before executing the computation.

Link copied to clipboard

List of parameters.

Functions

Link copied to clipboard

Compute the final ranking, given the votes.

Link copied to clipboard
open operator fun PollAlgorithmParameter.unaryPlus()

Shortcut useful to add an element in pollAlgorithmParameters.