def C_chance(self): """ Calculate C as defined in Godfrey-Smith and Martinez (2013) -- but using scipy.stats.kendalltau """ if not self.chance_node: raise exceptions.ChanceNodeError("This is not a chance-node game.") return tau_per_rows(self.state_chances, self.sender, self.receiver)
def K(self, array): """ Calculate K as defined in Godfrey-Smith and Martinez (2013) -- but using scipy.stats.kendalltau """ if not self.chance_node: raise exceptions.ChanceNodeError("This is not a chance-node game.") return intra_tau(self.state_chances, array)