`get.threshold()` calculates a threshold distance used to decide whether a cluster should be split further in recursive clustering (e.g., PART). The threshold is based on the hierarchical clustering dendrogram of the data and a quantile parameter `q`.

get.threshold(X, q, ...)

Arguments

X

Numeric data matrix (observations × variables) to calculate distances from.

q

Quantile parameter (0 < q < 1). The threshold is set as the (1-q) quantile of all dendrogram heights. Higher q → lower threshold → more splitting.

...

Additional parameters passed on to distance and clustering functions (e.g., `dist.method`, `linkage`, `cor.method`).