nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
lloyds.hpp File Reference
#include <memory_resource>
#include <nk/value/value.hpp>
#include <tuple>

Go to the source code of this file.

Functions

std::tuple< Value, Value, double, double > nk::comm::lloyds (const Value &training_set, const Value &ini_codebook, double tol=1e-7, std::pmr::memory_resource *mr=nullptr)
 Lloyd-Max scalar quantizer designer ([partition, codebook, distor, rel] = lloyds(training, ini_codebook, tol)).