Calculates the function W described in Metodiev et al. (2025).
param_i_qda_linearized(g, sims, meanhat, sigmahat, non_I_set)a vector: W evaluated at the posterior sample of component g
number indicating the component g
n_simul x G x (u+1) array of parameters sampled from the posterior, where n_simul is the number of simulations from the posterior, G is the number of components, u is the number of mixture component parameters (parameter u+1 is the mixture weight)
list of means of component parameters
list of covariance matrices of component parameters
complement of an independent set of a DAG
Martin Metodiev, Nicholas J. Irons, Marie Perrot-Dockès, Pierre Latouche, Adrian E. Raftery. "Easily Computed Marginal Likelihoods for Multivariate Mixture Models Using the THAMES Estimator." arXiv preprint arXiv:2504.21812.