parametric_gmm_fit: Fits a gaussian mixture model with specified parameters to...

View source: R/misc_functions.R

parametric_gmm_fitR Documentation

Fits a gaussian mixture model with specified parameters to the data agnostic to weights parametric_gmm_fit returns a matrix of standardized normal probabilities with rows as observations and columns as mixture components

Description

Fits a gaussian mixture model with specified parameters to the data agnostic to weights parametric_gmm_fit returns a matrix of standardized normal probabilities with rows as observations and columns as mixture components

Usage

parametric_gmm_fit(data, means, variances)

Arguments

data

(numeric) vector of values to compute probailities for

means

(numeric) vector of gaussian means, one per component

variances

(numeric) vector of gaussian variances, either length one or equal to the length of means

Value

matrix of values with row count equal to the length of data and column count equal to the length of the means

Examples

parametric_gmm_fit(0:5, c(1, 5), 2)

lculibrk/Ploidetect documentation built on May 18, 2023, 5:53 p.m.