/** * Centroid-linkage Agglomerative Hierarchical Clustering. * Reproduces scipy.cluster.hierarchy.linkage(method="centroid", metric="euclidean") * + fcluster(t=threshold, criterion="distance"), used by pyannote VBxClustering * to seed VBx. * * Operates on row-major (N, D) data. Returns a 0-based integer label per row. */ import type { Mat } from "../math/linalg.js"; /** * Centroid-linkage AHC stop criterion: stop merging when the next merge * would have euclidean distance >= threshold. Returns 0..K-1 labels. * * Note: centroid linkage is non-monotone, but for the typical scenario * (well-separated clusters, modest N) the simple "stop at threshold" rule * matches scipy's fcluster(criterion="distance") closely enough for VBx init. */ export declare function centroidLinkageCluster(data: Mat, threshold: number): Int32Array; //# sourceMappingURL=ahc.d.ts.map