ConvexContamination: Generic Function for Generating Convex Contaminations
Description
Generic function for generating convex contaminations. This is also
known as gross error model. Given two distributions \(P\)
(ideal distribution), \(R\) (contaminating distribution) and the
size \(\varepsilon\in [0,1]\) the convex contaminated distribution
$$Q = (1-\varepsilon)P + \varepsilon R$$
is generated.
Usage
ConvexContamination(e1, e2, size)
Value
Object of class "Distribution".
Arguments
e1
object of class "Distribution": ideal distribution
e2
object of class "Distribution": contaminating distribution