def get_tau_sd(tau=None, sd=None):
 if (tau is None):
  if (sd is None):
   sd = 1.0
   tau = 1.0
  else:
   tau = (sd ** (-2.0))
 elif (sd is not None):
  raise ValueError("Can't pass both tau and sd")
 else:
  sd = (tau ** (-0.5))
 tau = (1.0 * tau)
 sd = (1.0 * sd)
 return (tau, sd)

def get_tau_sd ( tau = None , sd = None ) : if ( tau is None ) : if ( sd is None ) : sd = 1.0 tau = 1.0 else : tau = ( sd ** ( - 2.0 ) ) elif ( sd is not None ) : raise ValueError ( "Can't pass both tau and sd" ) else : sd = ( tau ** ( - 0.5 ) ) tau = ( 1.0 * tau ) sd = ( 1.0 * sd ) return ( tau , sd )
find precision and standard deviation .