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

Go to the source code of this file.

Classes

struct  nk::comm::QuantizResult
 Result of the three-output form of quantiz. More...

Functions

Value nk::comm::quantiz_indx (const Value &sig, const Value &partition, std::pmr::memory_resource *mr=nullptr)
 One-output form of quantiz — bin index per sample (indx = quantiz(sig, partition)).
QuantizResult nk::comm::quantiz (const Value &sig, const Value &partition, const Value &codebook, std::pmr::memory_resource *mr=nullptr)
 Three-output form of quantiz ([indx, quantv, distor] = quantiz(sig, partition, codebook)).