def rhalf_normal(tau, size=None):
    """
    Random half-normal variates.
    """

    return abs(np.random.normal(0, np.sqrt(1 / tau), size))
def rhalf_normal ( tau , size = None ) : return abs ( np . random . normal ( 0 , np . sqrt ( 1 / tau ) , size ) )
Random half-normal variates.