Learn R Programming

AdaptGauss (version 1.2.0)

PlotMixturesAndBoundaries: Shows GMM with Boundaries

Description

Plots Gaussian Mixture Model with Bayes decision boundaries, such that: Black is the PDE of Data Red is color of the GMM Magenta are the Bayes boundaries

Usage

PlotMixturesAndBoundaries(Data, Means, SDs, Weights, IsLogDistribution,
 SingleColor, MixtureColor,DataColor, BoundaryColor, xlab, ylab, ...)

Arguments

Data
vector (1:N) of data points
Means
vector[1:L] of Means of Gaussians (of GMM),L == Number of Gaussians
SDs
vector of standard deviations, estimated Gaussian Kernels, has to be the same length as Means
Weights
vector of relative number of points in Gaussians (prior probabilities), has to be the same length as Means
IsLogDistribution
Optional, ==1 if distribution(i) is a LogNormal, default vector of zeros of length 1:L
SingleColor
Optional, Color for line plot of all the single gaussians, default magenta
MixtureColor
Optional, Color of line plot for the mixture, default red
DataColor
Optional, Color of line plot for the data, default black
BoundaryColor
Optional, Color of bayesian boundaries
xlab
Optional, x label, see plot
ylab
Optional, y label, ee plot
...
Optional, see plot for plot properties and for SingleGausses PlotMixtures

Details

you may also set SingleGausses=T than components of the mixture in blue will be shown.

See Also

BayesDecisionBoundaries,PlotMixtures