nk 1.0.0
C++ Numerical Computing Runtime
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
13namespace nk {
14
17 namespace ops { class RngContext; } }
18
19namespace nk::comm {
20
33 std::pmr::memory_resource *mr = nullptr);
34
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
Value rayleighchan(::nk::ops::RngContext &rng, const Value &x, std::pmr::memory_resource *mr=nullptr)
Apply iid frequency-flat Rayleigh fading (y = rayleighchan(x)).
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)).