nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
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
12
namespace
nk::comm {
13
16
17
19
struct
DpcmOptResult
{
20
Value
predictor
;
21
Value
codebook
;
22
Value
partition
;
23
};
24
45
DpcmOptResult
46
dpcmopt
(
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
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::Value::Empty
static const Value Empty
MATLAB-style empty matrix sentinel — a 0×0 DOUBLE value.
Definition
value.hpp:136
nk::comm::dpcmopt
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,...
nk::comm::DpcmOptResult
Result of dpcmopt.
Definition
dpcmopt.hpp:19
nk::comm::DpcmOptResult::predictor
Value predictor
Length-(ord+1) row vector [0, p1, …, pM].
Definition
dpcmopt.hpp:20
nk::comm::DpcmOptResult::partition
Value partition
Optional partition — empty unless requested.
Definition
dpcmopt.hpp:22
nk::comm::DpcmOptResult::codebook
Value codebook
Optional codebook — empty unless requested.
Definition
dpcmopt.hpp:21
src
toolboxes
comm
include
nk
comm
source
dpcmopt.hpp
Generated by
1.17.0