cmm_intersections: Intersections of Two Cauchy Distributions

View source: R/MixtureFitting.R

cmm_intersectionsR Documentation

Intersections of Two Cauchy Distributions

Description

Finds intersections of two Cauchy distributions by finding roots of a quadratic equation.

Usage

    cmm_intersections( p )

Arguments

p

parameter vector of 6 parameters. Structure of p vector is p = c( A1, A2, mu1, mu2, gamma1, gamma2 ), where Ai is the proportion of i-th component, mui is the location of i-th component, gammai is the Cauchy scale of i-th component.

Value

A vector of x values of intersections (zero, one or two). Returns NaN if both distributions are identical.

Author(s)

Andrius Merkys


merkys/MixtureFitting documentation built on May 25, 2024, 9:01 a.m.