nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
Loading...
Searching...
No Matches
fading.hpp
Go to the documentation of this file.
1
3
// toolboxes/comm/include/nk/comm/channel/fading.hpp
4
//
5
// Frequency-flat fading channels — per-sample iid Rayleigh and
6
// Rician multiplicative gains.
7
8
#pragma once
9
10
#include <memory_resource>
11
#include <nk/value/value.hpp>
12
13
namespace
nk {
14
17
namespace
ops {
class
RngContext
; } }
18
19
namespace
nk::comm {
20
32
Value
rayleighchan
(
::nk::ops::RngContext
&rng,
const
Value
&x,
33
std::pmr::memory_resource *mr =
nullptr
);
34
47
Value
ricianchan
(
::nk::ops::RngContext
&rng,
const
Value
&x,
double
K,
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::ops::RngContext
Definition
rng_context.hpp:29
nk::comm::rayleighchan
Value rayleighchan(::nk::ops::RngContext &rng, const Value &x, std::pmr::memory_resource *mr=nullptr)
Apply iid frequency-flat Rayleigh fading (y = rayleighchan(x)).
nk::comm::ricianchan
Value ricianchan(::nk::ops::RngContext &rng, const Value &x, double K, std::pmr::memory_resource *mr=nullptr)
Apply iid frequency-flat Rician fading (y = ricianchan(x, K)).
src
toolboxes
comm
include
nk
comm
channel
fading.hpp
Generated by
1.17.0