#include <memory_resource>#include <nk/value/span.hpp>#include <nk/value/value.hpp>Go to the source code of this file.
Functions | |
| Value | nk::stats::randsample (::nk::ops::RngContext &rng, int N, int K, bool with_replacement, const Value &weights, std::pmr::memory_resource *mr=nullptr) |
| Sample integers from 1..N (r = randsample(N, K, replacement, weights)). | |
| Value | nk::stats::datasample (::nk::ops::RngContext &rng, const Value &X, int K, int dim, bool with_replacement, const Value &weights, std::pmr::memory_resource *mr=nullptr) |
| Sample rows / columns of an array (Y = datasample(X, K, dim, replacement, weights)). | |
| Value | nk::stats::combnk (int N, int K, std::pmr::memory_resource *mr=nullptr) |
| Enumerate K-combinations of 1..N (C = combnk(N, K)). | |
| Value | nk::stats::combnk (Span< const double > v, int K, std::pmr::memory_resource *mr=nullptr) |
| Enumerate K-combinations of an arbitrary vector (C = combnk(v, K)). | |