def split(means, sigma):
    mu_1 = means[0:-1]
    mu_2 = means[-1:]
    sigma_11 = sigma[0:len(means) -1, 0:len(means) -1]
    sigma_12 = sigma[:-1,-1:]
    sigma_21 = sigma_12.T
    sigma_22 = sigma[len(means) -1:, len(means) - 1:]
    return mu_1, mu_2, sigma_11, sigma_12, sigma_21, sigma_22
Split the means and covariance matrix
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/gaussian_node.py/split