def weights_bartlett(nlags):
 return (1 - (np.arange((nlags + 1)) / (nlags + 1.0)))

def weights_bartlett ( nlags ) : return ( 1 - ( np . arange ( ( nlags + 1 ) ) / ( nlags + 1.0 ) ) )
bartlett weights for hac this will be moved to another module parameters nlags : int highest lag in the kernel window .