Exemple #1
0
 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)
Exemple #2
0
 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)