pub trait EvaluateSupport {
    // Required method
    fn evaluate(&self) -> ElectionScore;
}
Expand description

Extension trait for evaluating a support map or vector.

Required Methods§

source

fn evaluate(&self) -> ElectionScore

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.

Implementors§

source§

impl<AccountId: IdentifierT> EvaluateSupport for Supports<AccountId>