Exemplo n.º 1
0
 def test_robbins(self):
     """robbins metric should match hand-calculated value"""
     c = array([1,2,3,0,1])
     r = robbins(c)
     self.assertEqual(r,2./7) 
Exemplo n.º 2
0
def robbins(counts, **argv):
    return(alph.robbins(counts))