def __init__(self, b): # Note: we're deliberate bypassing MeekSTV.__init__ here # because we don't want any UI options RecursiveSTV.__init__(self, b) MethodPlugin.__init__(self) self.weakTieBreakMethod = "forward" # per clauses 19, 34 & 40 self.prec = 9 # per clause 5 self.prng_cands = {}
def postCount(self): "RecursiveQXSTV: Report QX stats if enabled" RecursiveSTV.postCount(self) if False: QX.postCount(self, self.R+1)
def preCount(self): RecursiveSTV.preCount(self) QX.set_precision(self, self.prec) QX.set_guard(self, self.prec)
def __init__(self, b): RecursiveSTV.__init__(self, b) self.prec = 9 self.strongTieBreakMethod = "random" # break all ties randomly self.weakTieBreakMethod = "strong" # treat all ties as strong self.surplusLimit = QX.Epsilon
def __init__(self, b): RecursiveSTV.__init__(self, b) MethodPlugin.__init__(self) self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])