View source: R/MixtureFitting.R
gmm_intersections | R Documentation |
Finds intersections of two Gaussian distributions by finding roots of a quadratic equation.
gmm_intersections( p )
p |
parameter vector of 6 parameters. Structure of p vector is p = c( A1, A2, mu1, mu2, sigma1, sigma2 ), where Ai is the proportion of i-th component, mui is the location of i-th component, sigmai is the scale of i-th component. |
A vector of x values of intersections (zero, one or two). Returns NaN if both distributions are identical.
Andrius Merkys
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.