#include <memory_resource>#include <nk/value/value.hpp>#include <string>#include <tuple>Go to the source code of this file.
Functions | |
| Value | nk::stats::linkage (const Value &Y, const std::string &method, std::pmr::memory_resource *mr=nullptr) |
| Agglomerative hierarchical clustering tree (Z = linkage(Y, method)). | |
| Value | nk::stats::linkage (const Value &Y, const std::string &method, const std::string &metric, double p, std::pmr::memory_resource *mr=nullptr) |
| 4-arg overload: when Y is a raw N×D data matrix, computes pdist(Y, metric, p) internally before linkage. | |
| Value | nk::stats::cluster_from_linkage (const Value &Z, int maxclust, double cutoff, const std::string &criterion, std::pmr::memory_resource *mr=nullptr) |
| Flatten a linkage tree into cluster labels (T = cluster(Z, opts)). | |
| Value | nk::stats::cluster_from_linkage (const Value &Z, int maxclust, double cutoff, const std::string &criterion, int depth, std::pmr::memory_resource *mr=nullptr) |
| 5-arg overload of cluster_from_linkage with explicit inconsistency depth. | |
| Value | nk::stats::clusterdata (const Value &X, int maxclust, double cutoff, const std::string &linkage_method, const std::string &criterion, std::pmr::memory_resource *mr=nullptr) |
| Convenience: pdist + linkage + cluster in one call (clusterdata). | |
| Value | nk::stats::clusterdata (const Value &X, int maxclust, double cutoff, const std::string &linkage_method, const std::string &criterion, int depth, std::pmr::memory_resource *mr=nullptr) |
| 6-arg clusterdata overload: explicit inconsistency depth. | |
| Value | nk::stats::clusterdata (const Value &X, int maxclust, double cutoff, const std::string &linkage_method, const std::string &criterion, int depth, const std::string &distance_metric, double p, std::pmr::memory_resource *mr=nullptr) |
| 8-arg clusterdata overload: explicit depth + custom distance metric. | |
| Value | nk::stats::cophenet (const Value &Z, const Value &Y, std::pmr::memory_resource *mr=nullptr) |
| Cophenetic correlation (c = cophenet(Z, Y)). | |
| Value | nk::stats::inconsistent (const Value &Z, int depth, std::pmr::memory_resource *mr=nullptr) |
| Inconsistency coefficient table (R = inconsistent(Z, depth)). | |