Function to perform Kolmogorov-Smirnov clustering on non-conformity scores
ks_cluster(ncs, class_vec, m, maxit = 100, nrep = 10)A vector of cluster assignments, with attributes containing the clusters, coverage gaps, method used, number of clusters, and Calibrated Clustering index
Vector of non-conformity scores
Vector of class labels
Number of clusters to form
Maximum number of iterations for the clustering algorithm
Number of repetitions for the clustering algorithm