Calculation of distances for EPIDEMIC Algorithm for multivariate outlier detection and imputation
EA.dist(
data,
n,
p,
weights,
reach,
transmission.function,
power,
distance.type,
maxl
)a data frame or matrix with data.
number of rows.
number of columns.
a vector of positive sampling weights.
if reach = "max" the maximal nearest
neighbor distance is used as the basis for the transmission
function, otherwise the weighted
form of the transmission function
of distance d: "step" is a heaviside function which jumps
to 1 at d0, "linear" is linear between
0 and d0, "power" is (beta*d+1)^(-p)
for p = ncol(data) as default, "root" is the function
1-(1-d/d0)^(1/maxl).
sets p = power.
distance type in function dist().
maximum number of steps without infection.
Beat Hulliger