powered by
Detect outliers
detect_outliers( sessions, MinPts = NULL, eps = NULL, noise_th = 2, log = FALSE, start = getOption("evprof.start.hour") )
sessions tibble with extra boolean column Outlier
Outlier
tibble, sessions data set in evprof standard format.
MinPts parameter for DBSCAN clustering
eps parameter for DBSCAN clustering
noise threshold
logical, whether to transform ConnectionStartDateTime and ConnectionHours variables to natural logarithmic scale (base = exp(1)).
ConnectionStartDateTime
ConnectionHours
exp(1)
integer, start hour in the x axis of the plot.
library(dplyr) sessions_outliers <- california_ev_sessions %>% sample_frac(0.05) %>% detect_outliers(start = 3, noise_th = 5, eps = 2.5)
Run the code above in your browser using DataLab