linkage.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
9 
10 #include <raft/core/handle.hpp>
11 
12 namespace ML {
13 namespace linkage {
14 
34 void single_linkage(const raft::handle_t& handle,
35  const float* X,
36  int n_rows,
37  int n_cols,
38  size_t n_clusters,
40  int* children,
41  int* labels,
42  bool use_knn = false,
43  int c = 15);
44 
45 }; // namespace linkage
46 }; // namespace ML
DistanceType
Definition: distance_type.hpp:10
void single_linkage(const raft::handle_t &handle, const float *X, int n_rows, int n_cols, size_t n_clusters, ML::distance::DistanceType metric, int *children, int *labels, bool use_knn=false, int c=15)
Computes single-linkage hierarchical clustering on a dense input feature matrix and outputs the label...
Definition: dbscan.hpp:18