This function implements the knn algorithm for outlier detection
Usage
knn(data, d, K, learn)
Value
Numeric vector containing the indices of detected outliers.
Arguments
data
Input Data (must be a data.frame)
d
Degree of outlier or distance at which an event is considered an outlier
K
Nearest neighbor for which an event must have a degree of outlier to be considered an outlier
learn
if TRUE the tutorial mode is activated (the algorithm will include an explanation detailing the theory behind the outlier detection algorithm and a step by step explanation of how is the data processed to obtain the outliers following the theory mentioned earlier)