@staticmethod
    def autocorr(x):
        
        GenericTests.check_type(x, "x", np.ndarray, 1)
        
        # normalise, compute norm
        xunbiased = x - np.mean(x)
        xnorm = np.sum(xunbiased ** 2)
        
        # convolve with itself
        acor = np.correlate(xunbiased, xunbiased, mode='same')
        
        # use only second half, normalise
        acor = acor[len(acor) / 2:] / xnorm
        
        return acor
Ensure client_id belong to a valid and active client.
dataset/ETHPy150Open karlnapf/kameleon-mcmc/kameleon_mcmc/tools/ConvergenceStats.py/ConvergenceStats.autocorr--crossover with--dataset/ETHPy150Open idan/oauthlib/oauthlib/oauth2/rfc6749/request_validator.py/RequestValidator.validate_client_id