nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
Loading...
Searching...
No Matches
kmedoids.hpp
Go to the documentation of this file.
1
3
// toolboxes/stats/include/nk/stats/cluster/kmedoids.hpp
4
5
#pragma once
6
7
#include <memory_resource>
8
#include <nk/value/value.hpp>
9
10
#include <string>
11
#include <tuple>
12
13
namespace
nk {
14
17
namespace
ops {
class
RngContext
; } }
18
19
namespace
nk::stats {
20
36
std::tuple<Value, Value, Value>
37
kmedoids
(
::nk::ops::RngContext
&rng,
const
Value
&X,
int
K,
int
max_iter,
int
replicates,
38
const
std::string &metric,
39
std::pmr::memory_resource *mr =
nullptr
);
40
60
std::tuple<Value, Value>
61
dbscan
(
const
Value
&X,
double
eps,
int
minpts,
const
std::string &metric,
62
std::pmr::memory_resource *mr =
nullptr
);
63
67
std::tuple<Value, Value>
68
dbscan
(
const
Value
&X,
double
eps,
int
minpts,
const
std::string &metric,
69
double
p,
70
std::pmr::memory_resource *mr =
nullptr
);
71
72
74
}
// namespace nk::stats
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::ops::RngContext
Definition
rng_context.hpp:29
nk::stats::dbscan
std::tuple< Value, Value > dbscan(const Value &X, double eps, int minpts, const std::string &metric, std::pmr::memory_resource *mr=nullptr)
DBSCAN density-based clustering ([idx, corepts] = dbscan(X, eps, minpts, metric)).
nk::stats::kmedoids
std::tuple< Value, Value, Value > kmedoids(::nk::ops::RngContext &rng, const Value &X, int K, int max_iter, int replicates, const std::string &metric, std::pmr::memory_resource *mr=nullptr)
PAM-style k-medoids clustering ([idx, medoids, sumd] = kmedoids(...)).
src
toolboxes
stats
include
nk
stats
cluster
kmedoids.hpp
Generated by
1.17.0