nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
dpcm.hpp
Go to the documentation of this file.
1
3// toolboxes/comm/include/nk/comm/source/dpcm.hpp
4//
5// Differential Pulse Code Modulation encoder/decoder.
6
7#pragma once
8
9#include <memory_resource>
10#include <nk/value/value.hpp>
11#include <utility>
12
13namespace nk::comm {
14
17
18
34std::pair<Value, Value>
35dpcmenco(const Value &sig, const Value &codebook,
36 const Value &partition, const Value &predictor,
37 std::pmr::memory_resource *mr = nullptr);
38
51std::pair<Value, Value>
52dpcmdeco(const Value &indx, const Value &codebook,
53 const Value &predictor,
54 std::pmr::memory_resource *mr = nullptr);
55
56
58} // namespace nk::comm
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
std::pair< Value, Value > dpcmdeco(const Value &indx, const Value &codebook, const Value &predictor, std::pmr::memory_resource *mr=nullptr)
DPCM decoder — invert dpcmenco ([sig, quanterr] = dpcmdeco(indx, codebook, predictor)).
std::pair< Value, Value > dpcmenco(const Value &sig, const Value &codebook, const Value &partition, const Value &predictor, std::pmr::memory_resource *mr=nullptr)
DPCM encoder ([indx, quanterr] = dpcmenco(sig, codebook, partition, predictor)).