nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
multirate.hpp File Reference
#include <memory_resource>
#include <nk/value/value.hpp>

Go to the source code of this file.

Functions

Value nk::signal::downsample (const Value &x, size_t n, std::pmr::memory_resource *mr=nullptr, size_t phase=0)
 Integer-rate downsampling — keep every n-th sample.
Value nk::signal::upsample (const Value &x, size_t n, std::pmr::memory_resource *mr=nullptr, size_t phase=0)
 Integer-rate upsampling — zero-stuff between samples.
Value nk::signal::decimate (const Value &x, size_t factor, std::pmr::memory_resource *mr=nullptr)
 Integer-factor decimation with anti-alias filtering.
Value nk::signal::resample (const Value &x, size_t p, size_t q, std::pmr::memory_resource *mr=nullptr)
 Rational rate conversion: change rate by factor p/q.