nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
dyad.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/dwt/dyad.hpp
4//
5// Dyadic upsample / downsample helpers (dyaddown / dyadup) and wmaxlev.
6
7#pragma once
8
9#include <memory_resource>
10#include <string>
11#include <nk/value/value.hpp>
12
13namespace nk::wavelet {
14
17
18
33Value dyaddown(const Value &x, int odd = 0, char type = 'c',
34 std::pmr::memory_resource *mr = nullptr);
35
49Value dyadup(const Value &x, int odd = 1, char type = 'c',
50 std::pmr::memory_resource *mr = nullptr);
51
64Value wmaxlev(const Value &N, const std::string &wname,
65 std::pmr::memory_resource *mr = nullptr);
66
67
69} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value dyaddown(const Value &x, int odd=0, char type='c', std::pmr::memory_resource *mr=nullptr)
Dyadic downsampling — y = dyaddown(x, odd, type).
Value dyadup(const Value &x, int odd=1, char type='c', std::pmr::memory_resource *mr=nullptr)
Dyadic upsampling with zero insertion — y = dyadup(x, odd, type).
Value wmaxlev(const Value &N, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
Maximum wavelet decomposition level — L = wmaxlev(N, wname).