nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
dpcmopt.hpp
Go to the documentation of this file.
1
3// toolboxes/comm/include/nk/comm/source/dpcmopt.hpp
4//
5// DPCM parameter optimiser.
6
7#pragma once
8
9#include <memory_resource>
10#include <nk/value/value.hpp>
11
12namespace nk::comm {
13
16
17
24
46dpcmopt(const Value &training_set, int ord,
47 const Value &ini_codebook = Value::Empty,
48 std::pmr::memory_resource *mr = nullptr);
49
50
52} // namespace nk::comm
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
static const Value Empty
MATLAB-style empty matrix sentinel — a 0×0 DOUBLE value.
Definition value.hpp:136
DpcmOptResult dpcmopt(const Value &training_set, int ord, const Value &ini_codebook=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Optimise DPCM predictor + (optional) quantizer ([predictor, codebook, partition] = dpcmopt(training,...
Result of dpcmopt.
Definition dpcmopt.hpp:19
Value predictor
Length-(ord+1) row vector [0, p1, …, pM].
Definition dpcmopt.hpp:20
Value partition
Optional partition — empty unless requested.
Definition dpcmopt.hpp:22
Value codebook
Optional codebook — empty unless requested.
Definition dpcmopt.hpp:21