make_blobs.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2022, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <cstdint>
9 
10 namespace raft {
11 class handle_t;
12 }
13 
14 namespace ML {
15 namespace Datasets {
16 
49 void make_blobs(const raft::handle_t& handle,
50  float* out,
51  int64_t* labels,
52  int64_t n_rows,
53  int64_t n_cols,
54  int64_t n_clusters,
55  bool row_major = true,
56  const float* centers = nullptr,
57  const float* cluster_std = nullptr,
58  const float cluster_std_scalar = 1.f,
59  bool shuffle = true,
60  float center_box_min = -10.f,
61  float center_box_max = 10.f,
62  uint64_t seed = 0ULL);
63 void make_blobs(const raft::handle_t& handle,
64  double* out,
65  int64_t* labels,
66  int64_t n_rows,
67  int64_t n_cols,
68  int64_t n_clusters,
69  bool row_major = true,
70  const double* centers = nullptr,
71  const double* cluster_std = nullptr,
72  const double cluster_std_scalar = 1.0,
73  bool shuffle = true,
74  double center_box_min = -10.0,
75  double center_box_max = 10.0,
76  uint64_t seed = 0ULL);
77 void make_blobs(const raft::handle_t& handle,
78  float* out,
79  int* labels,
80  int n_rows,
81  int n_cols,
82  int n_clusters,
83  bool row_major = true,
84  const float* centers = nullptr,
85  const float* cluster_std = nullptr,
86  const float cluster_std_scalar = 1.f,
87  bool shuffle = true,
88  float center_box_min = -10.f,
89  float center_box_max = 10.0,
90  uint64_t seed = 0ULL);
91 void make_blobs(const raft::handle_t& handle,
92  double* out,
93  int* labels,
94  int n_rows,
95  int n_cols,
96  int n_clusters,
97  bool row_major = true,
98  const double* centers = nullptr,
99  const double* cluster_std = nullptr,
100  const double cluster_std_scalar = 1.0,
101  bool shuffle = true,
102  double center_box_min = -10.0,
103  double center_box_max = 10.0,
104  uint64_t seed = 0ULL);
107 } // namespace Datasets
108 } // namespace ML
void make_blobs(const raft::handle_t &handle, float *out, int64_t *labels, int64_t n_rows, int64_t n_cols, int64_t n_clusters, bool row_major=true, const float *centers=nullptr, const float *cluster_std=nullptr, const float cluster_std_scalar=1.f, bool shuffle=true, float center_box_min=-10.f, float center_box_max=10.f, uint64_t seed=0ULL)
void shuffle(std::vector< math_t > &rand_indices, std::mt19937 &g)
Definition: shuffle.h:24
Definition: dbscan.hpp:18
Definition: dbscan.hpp:14