- class svvamp.PluralityEliminationEngine(profile)[source]
An engine that eliminates candidates and updates the plurality scores.
This class is used internally by SVVAMP. It is not intended for the end user.
- Parameters:
profile (Profile) – The profile.
- property candidates_alive
List of alive candidates.
- Type:
ndarray
- eliminate_candidate(loser)[source]
Eliminate one candidate.
- Parameters:
loser (int) – The candidate to eliminate.
- eliminate_candidate_and_update_scores(loser)[source]
Eliminate a candidate and update the plurality scores.
- Parameters:
loser (int) – The candidate to eliminate.
- is_alive
True iff the candidate is still alive.
- Type:
ndarray
- loser
The latest eliminated candidate (None at initialization).
- Type:
int
- property nb_candidates_alive
Number of alive candidates.
- Type:
int
- property scores
The current plurality scores.
- Type:
ndarray