gmm_mad: Computes weighted median absolute deviations (MADs) for each...

View source: R/misc_functions.R

gmm_madR Documentation

Computes weighted median absolute deviations (MADs) for each component of a gaussian mixture model

Description

gmm_mad returns the weighted median absolute deviation of data fit to the specified mixture model

Usage

gmm_mad(data, means, variances)

Arguments

data

(numeric) vector of values to compute the MAD over

means

(numeric) vector of means for the mixture moel

variances

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

Value

a single numeric of the MAD for the model

Examples

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

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