Cleaning outliers
Cleaning of the most remarkable outliers. This improves the performance of the archetypoid algorithm since it is not affected by spurious points.
do_clean(data, num_pts, range = 1.5, out_perc = 80)
data |
Data frame with (temporal) points in the rows and observations in the columns. |
num_pts |
Number of temporal points. |
range |
Same parameter as in function |
out_perc |
Minimum number of temporal points (in percentage) to consider
the observation as an outlier. Needed when |
Numeric vector with the outliers.
Irene Epifanio
data(mtcars) data <- mtcars num_pts <- ncol(data) do_clean(t(data), num_pts, 1.5, 80)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.