CostKL {vabayelMix} | R Documentation |
Computes the value of the cost function. Used for monitoring convergence.
CostKL(Ncat,data, m0, am0, aiv0, biv0, api0, m, am, aiv, biv, api, Catwm)
m0,am0,aiv0,biv0,api0 |
Prior hyperparameters, see vabayelMix |
m,am,aiv,biv |
Posterior parameters. |
lambda |
Categorical weight matrix, see References. |
s.lambda |
Derived from lambda, see References. |
A list with the following components:
mean |
Means of gaussian posterior. Matrix of dimension Ncat x Ndim. |
ivarm |
Inverse variances of gaussian posterior. Matrix of dimension Ncat x Ndim. |
ivara,ivarb |
Parameters of gamma posterior. Matrices of dimension Ncat x Ndim. |
dapi |
Parameters of dirichlet posterior giving weights of components. |
Andrew Teschendorffaet21@hutchison-mrc.cam.ac.uk