Rather than pass around Vectors of mu and sigma values (and others such as weights), and then check that their length is equivalent in GMM functions, instead create a Vector of structs, where each struct collects the data for one gaussian. Something like this maybe:
Describe the solution you'd like
Rather than pass around
Vector
s ofmu
andsigma
values (and others such asweights
), and then check that their length is equivalent in GMM functions, instead create aVector
of structs, where each struct collects the data for one gaussian. Something like this maybe: