def generate_correlated_data(num_rows, num_cols, means, corr, seed=0):
    assert(1 <= corr and corr >= 0)
    assert(num_cols == len(means))

    numpy.random.seed(seed=seed)

    mu = numpy.array(means)
    sigma = numpy.ones((num_cols,num_cols),dtype=float)*corr
    for i in range(num_cols):
        sigma[i,i] = 1 
    X = numpy.random.multivariate_normal(mu, sigma, num_rows)

    return X
dataset/ETHPy150Open probcomp/crosscat/src/tests/mutual_information_test_utils.py/generate_correlated_data/swapped operands of `<=`