gmm_merge_components: Merge two Gaussian components into one.

View source: R/MixtureFitting.R

gmm_merge_componentsR Documentation

Merge two Gaussian components into one.

Description

Merges ith and jth components of Gaussian mixture model. Implemented in the same venue as in mergeparameters of fpc.

Usage

    gmm_merge_components( x, p, i, j )

Arguments

x

data vector

p

vector of Gaussian mixture parameters. Structure of p vector is p = c( A1, A2, ..., An, mu1, mu2, ..., mun, k1, k2, ..., kn ), where n is number of mixture components, Ai is the proportion of i-th component, mui is the center of i-th component, ki is the concentration of i-th component.

i

index of the first component to be merged. Component with this index will be replaced by a merged one in the output.

j

index of the second component to be merged. Component with this index will be removed in the output.

Value

Vector of mixture parameters, whose structure is the same as of input parameter's p.

Author(s)

Andrius Merkys

References

Hennig, C. Methods for merging Gaussian mixture components Advances in Data Analysis and Classification, Springer Nature, 2010, 4, 3-34


merkys/MixtureFitting documentation built on Feb. 26, 2023, 5:21 p.m.