nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
sgolay.hpp
Go to the documentation of this file.
1
3// toolboxes/signal/include/nk/signal/smoothing/sgolay.hpp
4//
5// Savitzky-Golay smoothing filter family.
6
7#pragma once
8
9#include <memory_resource>
10#include <nk/value/value.hpp>
11
12namespace nk::signal {
13
16
17
33Value sgolay(int order,
34 int framelen,
35 std::pmr::memory_resource * mr = nullptr);
36
54Value sgolayDiff(int order,
55 int framelen,
56 std::pmr::memory_resource * mr = nullptr);
57
82 int order,
83 int framelen,
84 std::pmr::memory_resource * mr = nullptr);
85
105 int order,
106 int framelen,
107 const Value & weights,
108 int dim,
109 std::pmr::memory_resource * mr = nullptr);
110
111
113} // namespace nk::signal
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value sgolayfilt(const Value &x, int order, int framelen, std::pmr::memory_resource *mr=nullptr)
Savitzky-Golay smoothing of a 1-D signal.
Value sgolayDiff(int order, int framelen, std::pmr::memory_resource *mr=nullptr)
Savitzky-Golay differentiation-filter matrix (the second output G of MATLAB's [B,G] = sgolay(order,...
Value sgolay(int order, int framelen, std::pmr::memory_resource *mr=nullptr)
Savitzky-Golay filter projection matrix.