Learn R Programming

pintervals (version 1.1.1)

wcss_compute: Function to Compute the Within-Cluster Sum of Squares (WCSS) for a Set of Clusters

Description

Function to Compute the Within-Cluster Sum of Squares (WCSS) for a Set of Clusters

Usage

wcss_compute(ncs, class_vec, cluster, q = seq(0.1, 0.9, by = 0.1))

Value

A numeric value representing the WCSS for the cluster

Arguments

ncs

Vector of non-conformity scores

class_vec

Vector of class labels

cluster

Vector of cluster labels

q

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