align_gmm: Affine Alignment for Gaussian Mixture Models

Description Usage Arguments Value Examples

Description

Affine Alignment for Gaussian Mixture Models

Usage

1
2
align_gmm(x, warping = "affine", target_mean = 0,
  target_precision = 1)

Arguments

x

A Gaussian mixture stored in an object of class gmm.

warping

A character specifying the family of warping functions to consider, among shift, dilation and affine (default). Any other choice leads to no alignment

ref_mean

The reference mean to align to when shift or affine warping functions are used (default: 0).

ref_precision

The reference precisions to align to when dilation or affine warping functions are used (default: 1).

dictionary

A data frame with the 3 variables component, mean and precision specifying a dictionary of Gaussian measures onto which projecting the resulting aligned Gaussian mixture. If not provided (default), this step is skipped.

Value

A Gaussian mixture in an object of class gmm aligned on the provided reference.

Examples

1
2
3
x <- gmm(rep(0, 4), 1:4, rep(0.25, 4))
dict <- data.frame(component = paste0("C", 1:4), mean = rep(0, 4), precision = 1:4)
align_gmm(x, dictionary = dict, warping = "shift")

astamm/game documentation built on June 5, 2019, 8:53 a.m.