Learn R Programming

AdaptGauss (version 1.2.0)

LogLikelihood4Mixtures: LogLikelihood for Gaussian Mixture Models

Description

Computes the LogLikelihood for Gaussian Mixture Models.

Usage

LogLikelihood4Mixtures(Data, Means, SDs, Weights, IsLogDistribution)

Arguments

Data
Data for empirical PDF. Has to be an Array of values. NaNs and NULLs will be deleted
Means
Optional: Means of gaussians of GMM.
SDs
Optional: StandardDevations of gaussians of GMM. (Has to be the same length as Means)
Weights
Optional: Weights of gaussians of GMM. (Has to be the same length as Means)
IsLogDistribution
Optional, ==1 if distribution(i) is a LogNormal, default vector of zeros of length 1:L

Value

  • List with
  • LogLikelihoodLogLikelihood = = sum(log(PDFmixture)
  • LogPDF=log(PDFmixture)
  • PDFmixturedie Probability density function for each point