Calculate log multivariate Gaussian densities
Calculates logs of multivariate Gaussian densities with constant mean and constant covariance matrix AND EXCLUDING the constant term of the density (the constant is calculated and added in R code).
Gaussian_densities_const_Cpp(obs, mean, cholcovmat)
obs
: a matrix such that the i:th row contains the vector , where
. That is, the initial values are included but the last observations not.
mean
: the mean vector, rep(all_mu[,m], times=p)
, that is the same for all observations.
cholcovmat
: the covariance matrix that is the same for all observations.
a numeric vector containing the multivariate Gaussian densities, excluding the constant term.
This function is used in the relative density transition weights with Gaussian regimes.