R/screeline.R

Defines functions screeline

Documented in screeline

screeline <- function(distObj, breaks = 20){
	thresholds <- seq(0, max(distObj), length.out = breaks + 1)
	thresholds <- thresholds[-1]
	clusts <- sapply(thresholds, function(xx) length(tclust(distObj, threshold = xx)))
	output <- list(y = clusts, x = thresholds)
	output
}

Try the spiderDev package in your browser

Any scripts or data that you put into this service are public.

spiderDev documentation built on May 2, 2019, 5:23 p.m.