gmm_probability: GMM Probability Calculator

View source: R/gmm_probability.R

gmm_probabilityR Documentation

GMM Probability Calculator

Description

A probability calculator for GMMs. Given a pre-trained GMM and a set of points, this can compute the probability that each point is from the given GMM.

Usage

gmm_probability(
  input,
  input_model,
  verbose = getOption("mlpack.verbose", FALSE)
)

Arguments

input

Input matrix to calculate probabilities of (numeric matrix).

input_model

Input GMM to use as model (GMM).

verbose

Display informational messages and the full list of parameters and timers at the end of execution. Default value "getOption("mlpack.verbose", FALSE)" (logical).

Details

This program calculates the probability that given points came from a given GMM (that is, P(X | gmm)). The GMM is specified with the "input_model" parameter, and the points are specified with the "input" parameter. The output probabilities may be saved via the "output" output parameter.

Value

A list with several components:

output

Matrix to store calculated probabilities in (numeric matrix).

Author(s)

mlpack developers

Examples

# So, for example, to calculate the probabilities of each point in "points"
# coming from the pre-trained GMM "gmm", while storing those probabilities in
# "probs", the following command could be used:

## Not run: 
output <- gmm_probability(input_model=gmm, input=points)
probs <- output$output

## End(Not run)

mlpack documentation built on June 22, 2024, 9:36 a.m.