Learn R Programming

pintervals (version 1.1.1)

ch_index: Function to Compute the Calinski-Harabasz Index for a Set of Clusters

Description

Function to Compute the Calinski-Harabasz Index for a Set of Clusters

Usage

ch_index(ncs, class_vec, clusters, q = seq(0.1, 0.9, by = 0.1))

Value

A numeric value representing the Calinski-Harabasz index for the clusters

Arguments

ncs

Vector of non-conformity scores

class_vec

Vector of class labels

clusters

List of clusters, where each element is a vector of class labels assigned to that cluster

q

Quantiles to use for the qECDFs, default is a sequence from 0.1 to 0.9 in steps of 0.1