likelihoodgmm: Calculates the likelihood for a given dataset for a GMM

Description Usage Arguments Value Examples

View source: R/gmm.R

Description

Calculates the likelihood for a given dataset for a GMM

Usage

1
likelihoodgmm(model = NULL, X = NULL)

Arguments

model

: The Gaussian Mixture Model

X

(n by d): The dataset of interest, where n is the number of samples and d is the dimension

Value

P (n by k) : The likelihood of each dataset belonging to each of the k component

Examples

1
2
3
4
5
# compute likelihood for a default 1-d gaussian mixture model
# and dataset generated from it
model <- gmm()
X <- rgmm(model)
p <- likelihoodgmm(model=model, X=X)

KSD documentation built on May 30, 2017, 2:23 a.m.

Search within the KSD package
Search all R packages, documentation and source code