powered by
Score function for given GMM : calculates score function dlogp(x)/dx for a given Gaussian Mixture Model
scorefunctiongmm(model = NULL, X = NULL)
: The Gaussian Mixture Model
(n by d): The dataset of interest, where n is the number of samples and d is the dimension
y : The score computed by the given function
# NOT RUN { # Compute score for a given gaussianmixture model and dataset model <- gmm() X <- rgmm(model) score <- scorefunctiongmm(model=model, X=X) # }
Run the code above in your browser using DataLab