clusteriness: Perform a cluster analysis.

View source: R/method_clustering.R

clusterinessR Documentation

Perform a cluster analysis.

Description

This function will cluster the data using stats::hclust() and stats::cutree(). Every cluster with at least two members qualifies for further analysis. Clusters are then ranked based on their size in relation to the total number of values. The return value is a final score between 0.0 and 1.0. Lower ranking clusters contribute less to this score.

Usage

clusteriness(data, span = 1e+06, weight = 0.5)

Arguments

data

The values that should be scored.

span

The maximum span of values considered to be in one cluster.

weight

The weight that will be given to the next largest cluster in relation to the previous one. For example, if weight is 0.5 (the default), the first cluster will weigh 1.0, the second 0.5, the third 0.25 etc.

Value

A score between 0.0 and 1.0 summarizing how much the data clusters.


johrpan/geposan documentation built on Feb. 28, 2025, 3:48 a.m.