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

Go to the source code of this file.

Functions

Value nk::signal::uencode (const Value &u, int N, double V=1.0, bool signedOutput=false, std::pmr::memory_resource *mr=nullptr)
 Quantise and encode u as N-bit integers (y = uencode(u, N, V, type)).
Value nk::signal::udecode (const Value &u, int N, double V=1.0, bool wrapOnOverflow=false, std::pmr::memory_resource *mr=nullptr)
 Decode integer data back to double with peak ±V (y = udecode(u, N, V, overflow)).