powered by
Computes the density of a two-component Gaussian mixture along the ridgeline (Ray and Lindsay, 2005), along which all its density extrema are located.
dridgeline(alpha=seq(0,1,0.001), prop, mu1, mu2, Sigma1, Sigma2, showplot=FALSE, ...)
sequence of values between 0 and 1 for which the density is computed.
mixture proportion of first component.
mean vector of component 1.
mean vector of component 2.
covariance matrix of component 1.
covariance matrix of component 2.
logical. If TRUE, the density is plotted against alpha.
TRUE
alpha
further arguments to be passed on to plot.
Vector of density values for values of alpha.
Ray, S. and Lindsay, B. G. (2005) The Topography of Multivariate Normal Mixtures, Annals of Statistics, 33, 2042-2065.
# NOT RUN { q <- dridgeline(seq(0,1,0.1),0.5,c(1,1),c(2,5),diag(2),diag(2)) # }
Run the code above in your browser using DataLab