def _abs_auto(ms):
 num_acs = min(11, len(ms))
 if num_acs:
  auto_corrs = [numpy.corrcoef(ms, numpy.append(ms[i:], ms[:i]))[1][0] for i in range(1, num_acs)]
  return map(abs, auto_corrs)

def _abs_auto ( ms ) : num_acs = min ( 11 , len ( ms ) ) if num_acs : auto_corrs = [ numpy . corrcoef ( ms , numpy . append ( ms [ i : ] , ms [ : i ] ) ) [ 1 ] [ 0 ] for i in range ( 1 , num_acs ) ] return map ( abs , auto_corrs )
return absolute value of auto-correlations for lags 1 to 10 .