findCutoff {MetaCyto} | R Documentation |
A function that finds cutoff for a 1D distribution.
findCutoff(x, returnSil = FALSE, useBL = TRUE, minX = 0)
x |
A vector of values. |
returnSil |
Logic, used to specify if the max average silhouette is returned |
useBL |
Logic, used to specify if outliers should be ignored |
minX |
A numerical value, used to specify the min value allowed for the cutoff. |
If returnSil=F, returns a single cutoff value. Otherwise, returns a list containing the cutoff value and the max average silhouette
x=c(rnorm(1000),rnorm(1000,5)) findCutoff(x)