Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

posteriorgmm

Calculates the posterior probability for a given dataset for a GMM


Description

Calculates the posterior probability for a given dataset for a GMM

Usage

posteriorgmm(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 posterior probabilty of each dataset belonging to each of the k component

Examples

# compute posterior probability for a default 1-d gaussian mixture model
# and dataset generated from it
model <- gmm()
X <- rgmm(model)
p <- posteriorgmm(model=model, X=X)

KSD

Goodness-of-Fit Tests using Kernelized Stein Discrepancy

v1.0.1
MIT + file LICENSE
Authors
Min Hyung Kang [aut, cre], Qiang Liu [aut]
Initial release
2021-01-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.