Ejemplo n.º 1
0
def hw_hetero(sp_sub):
    p = male_def(sp_sub)
    q = fast_inplace_scalar_add(-p, 1)
    fast_inplace_mul(p, q)
    return 2 * p
Ejemplo n.º 2
0
def hw_hetero(sp_sub):
    p = male_def(sp_sub)
    q = fast_inplace_scalar_add(-p,1)
    fast_inplace_mul(p,q)
    return 2*p
Ejemplo n.º 3
0
def hw_hetero(sp_sub, a):
    p = allele(sp_sub, a)
    q = fast_inplace_scalar_add(-p, 1)
    fast_inplace_mul(p, q)
    return 2 * p