Safe Haskell | None |
---|---|
Language | Haskell2010 |
which is sufficient to determine the MajorityRanking
when the number of judges is large.
Synopsis
- data MajorityGauge g = MajorityGauge {}
- data Sign
- mgSign :: MajorityGauge g -> Sign
- majorityGauge :: Ord grade => Merit grade -> Maybe (MajorityGauge grade)
- majorityGauges :: Ord grade => Merit grade -> [MajorityGauge grade]
- type MajorityGaugeRanking choice grade = [(choice, [MajorityGauge grade])]
- majorityGaugesByChoice :: Ord grade => MeritByChoice choice grade -> HashMap choice [MajorityGauge grade]
- majorityGaugeRanking :: Ord grade => MeritByChoice choice grade -> MajorityGaugeRanking choice grade
Type MajorityGauge
data MajorityGauge g Source #
The MajorityGauge
is a simplification of the majorityValue
from which may be deduced the majorityRanking
among the propositions in many cases;
in particular, when there are many judges.
However, when two propositions are tied with the same MajorityGauge
,
they are not necessarily tied according to their majorityValue
s.
Instances
Type Sign
mgSign :: MajorityGauge g -> Sign Source #
majorityGauge :: Ord grade => Merit grade -> Maybe (MajorityGauge grade) Source #
majorityGauges :: Ord grade => Merit grade -> [MajorityGauge grade] Source #
Type MajorityGaugeRanking
type MajorityGaugeRanking choice grade = [(choice, [MajorityGauge grade])] Source #
majorityGaugesByChoice :: Ord grade => MeritByChoice choice grade -> HashMap choice [MajorityGauge grade] Source #
majorityGaugeRanking :: Ord grade => MeritByChoice choice grade -> MajorityGaugeRanking choice grade Source #