nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
dwt.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/dwt/dwt.hpp
4
5#pragma once
6
7#include <memory_resource>
8#include <nk/value/value.hpp>
9#include <string>
10#include <utility>
11#include <vector>
12
13namespace nk::wavelet {
14
17
18
42std::pair<Value, Value>
43dwt(const Value &x, const std::string &wname,
44 std::pmr::memory_resource *mr = nullptr);
45
60std::pair<Value, Value>
62 const std::vector<double> &Lo_D,
63 const std::vector<double> &Hi_D,
64 std::pmr::memory_resource *mr = nullptr);
65
81Value idwt(const Value &cA, const Value &cD,
82 const std::string &wname,
83 long long len /* = -1 */,
84 std::pmr::memory_resource *mr = nullptr);
85
103 const std::vector<double> &Lo_R,
104 const std::vector<double> &Hi_R,
105 long long len,
106 std::pmr::memory_resource *mr = nullptr);
107
108
110} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
std::pair< Value, Value > dwt_with_filters_pub(const Value &x, const std::vector< double > &Lo_D, const std::vector< double > &Hi_D, std::pmr::memory_resource *mr=nullptr)
Internal entry: dwt with explicit analysis filters.
Value idwt(const Value &cA, const Value &cD, const std::string &wname, long long len, std::pmr::memory_resource *mr=nullptr)
Inverse single-level discrete wavelet transform.
std::pair< Value, Value > dwt(const Value &x, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
Single-level discrete wavelet transform ([cA, cD] = dwt(x, wname)).
Value idwt_with_filters_pub(const Value &cA, const Value &cD, const std::vector< double > &Lo_R, const std::vector< double > &Hi_R, long long len, std::pmr::memory_resource *mr=nullptr)
Internal entry: idwt with explicit synthesis filters.