scorefunctiongmm {KSD}R Documentation

Score function for given GMM : calculates score function dlogp(x)/dx for a given Gaussian Mixture Model

Description

Score function for given GMM : calculates score function dlogp(x)/dx for a given Gaussian Mixture Model

Usage

scorefunctiongmm(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

y : The score computed by the given function

Examples

# Compute score for a given gaussianmixture model and dataset
model <- gmm()
X <- rgmm(model)
score <- scorefunctiongmm(model=model, X=X)

[Package KSD version 1.0.1 Index]