def get_domainvalue(link):
 z = (- np.log(np.random.uniform(0, 1)))
 if (type(link) == type(cloglog)):
  z = min(z, 3)
 elif (type(link) == type(negbinom)):
  z = (- z)
 return z

def get_domainvalue ( link ) : z = ( - np . log ( np . random . uniform ( 0 , 1 ) ) ) if ( type ( link ) == type ( cloglog ) ) : z = min ( z , 3 ) elif ( type ( link ) == type ( negbinom ) ) : z = ( - z ) return z
get a value in the domain for a given family .