Function sp_npos_elections::is_score_better [−][src]
pub fn is_score_better<P: PerThing>(
this: ElectionScore,
that: ElectionScore,
epsilon: P
) -> bool
Expand description
Compares two sets of election scores based on desirability and returns true if this
is better
than that
.
Evaluation is done in a lexicographic manner, and if each element of this
is that * epsilon
greater or less than that
.
Note that the third component should be minimized.