[][src]Function sp_npos_elections::is_score_better

pub fn is_score_better<P: PerThing>(
    this: ElectionScore,
    that: ElectionScore,
    epsilon: P
) -> bool where
    ExtendedBalance: From<InnerOf<P>>, 

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.