Learn R Programming

pintervals (version 1.0.1)

ks_cluster: Function to perform Kolmogorov-Smirnov clustering on non-conformity scores

Description

Function to perform Kolmogorov-Smirnov clustering on non-conformity scores

Usage

ks_cluster(ncs, class_vec, m, maxit = 100, nrep = 10)

Value

A vector of cluster assignments, with attributes containing the clusters, coverage gaps, method used, number of clusters, and Calibrated Clustering index

Arguments

ncs

Vector of non-conformity scores

class_vec

Vector of class labels

m

Number of clusters to form

maxit

Maximum number of iterations for the clustering algorithm

nrep

Number of repetitions for the clustering algorithm