nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
compand.hpp
Go to the documentation of this file.
1
3// toolboxes/comm/include/nk/comm/eq/compand.hpp
4//
5// μ-law / A-law signal compander.
6
7#pragma once
8
9#include <memory_resource>
10#include <nk/value/value.hpp>
11#include <string>
12
13namespace nk::comm {
14
17
18
39Value compand(const Value &x, double param, double V,
40 const std::string &method,
41 std::pmr::memory_resource *mr = nullptr);
42
43
45} // namespace nk::comm
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value compand(const Value &x, double param, double V, const std::string &method, std::pmr::memory_resource *mr=nullptr)
μ-law / A-law signal compander (y = compand(x, param, V, method)).