def split_mixture_parameters(parameters, output_dimension, number_of_mixtures):

    """
    Splits the mixture parameters.

    Arguments
    ---------

    parameters : tuple
        Parameter to split

    output_dimension : integer
        Dimensionality of the output.

    number_of_mixtures : integer
        Number of gaussians used.

    Returns
    -------
    List of arrays
        Separate mixture parameters

    """

    dimension = number_of_mixtures * output_dimension
    mu = parameters[:dimension]
    sigma = parameters[dimension:(2 * dimension)]
    pi_logits = parameters[-number_of_mixtures:]
    return([mu, sigma, pi_logits])