threshold: Threshold CHIPS Output

View source: R/chips.R

thresholdR Documentation

Threshold CHIPS Output

Description

This function applies a threshold to the output of the chips function to find a CHIPS subpartition which achieves the specified threshold and then completes the partition using the SALSO algorithm.

Usage

threshold(chipsOutput, threshold, ...)

Arguments

chipsOutput

Output from the chips function.

threshold

The minimum marginal probability for the subpartition. Values closer to 1.0 will yield a partition of fewer items and values closer to 0.0 will yield a partition of more items.

...

Other arguments passed to the chips function.

Value

A list containing the same values as the chips function.

Examples

# For examples, use 'nCores = 1' per CRAN rules, but in practice omit this.
data(iris.clusterings)
draws <- iris.clusterings

all <- chips(draws, nRuns = 1, nCores = 1)
plot(all$n_items, all$probability)

threshold(all, threshold = 0.5, nCores = 1)


salso documentation built on April 11, 2025, 5:56 p.m.