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

Go to the source code of this file.

Functions

Value nk::signal::cconv (const Value &x, const Value &y, size_t n=0, std::pmr::memory_resource *mr=nullptr)
 Circular (cyclic) convolution of two real vectors.
Value nk::signal::convmtx (const Value &h, size_t n, std::pmr::memory_resource *mr=nullptr)
 Convolution matrix for an impulse response.
Value nk::signal::xcorr2 (const Value &A, const Value &B, std::pmr::memory_resource *mr=nullptr)
 2-D cross-correlation of two real matrices.
long nk::signal::finddelay (const Value &x, const Value &y, long max_lag=0, std::pmr::memory_resource *mr=nullptr)
 Estimate the integer delay between two signals.
std::tuple< Value, Value > nk::signal::alignsignals (const Value &x, const Value &y, long max_lag=0, std::pmr::memory_resource *mr=nullptr)
 Align two signals by zero-padding the leading one.