Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dridgeline

Density along the ridgeline


Description

Computes the density of a two-component Gaussian mixture along the ridgeline (Ray and Lindsay, 2005), along which all its density extrema are located.

Usage

dridgeline(alpha=seq(0,1,0.001), prop,
                          mu1, mu2, Sigma1, Sigma2, showplot=FALSE, ...)

Arguments

alpha

sequence of values between 0 and 1 for which the density is computed.

prop

mixture proportion of first component.

mu1

mean vector of component 1.

mu2

mean vector of component 2.

Sigma1

covariance matrix of component 1.

Sigma2

covariance matrix of component 2.

showplot

logical. If TRUE, the density is plotted against alpha.

...

further arguments to be passed on to plot.

Value

Vector of density values for values of alpha.

Author(s)

References

Ray, S. and Lindsay, B. G. (2005) The Topography of Multivariate Normal Mixtures, Annals of Statistics, 33, 2042-2065.

Examples

q <- dridgeline(seq(0,1,0.1),0.5,c(1,1),c(2,5),diag(2),diag(2))

fpc

Flexible Procedures for Clustering

v2.2-9
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>
Initial release
2020-12-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.