data(Pinf)
pinfreps <- fix_replen(Pinf, c(2, 2, 6, 2, 2, 2, 2, 2, 3, 3, 2))
pthresh <- filter_stats(Pinf, distance = bruvo.dist, replen = pinfreps,
plot = TRUE, stats = "THRESHOLD")
# prediction for farthest neighbor
cutoff_predictor(pthresh$farthest)
# prediction for all algorithms
p <- sapply(pthresh, cutoff_predictor)
abline(v = p)
Run the code above in your browser using DataLab