Trait tp_npos_elections::EvaluateSupport[][src]

pub trait EvaluateSupport<K> {
    fn evaluate(self) -> ElectionScore;
}

Extension trait for evaluating a support map or vector.

Required methods

fn evaluate(self) -> ElectionScore[src]

Evaluate a support map. The returned tuple contains:

  • Minimum support. This value must be maximized.
  • Sum of all supports. This value must be maximized.
  • Sum of all supports squared. This value must be minimized.
Loading content...

Implementors

impl<A, C, I> EvaluateSupport<A> for C where
    C: IntoIterator<Item = I>,
    I: TupleRef<A, Support<A>>,
    A: IdentifierT
[src]

Loading content...