7#include <memory_resource>
9#include <nk/value/value.hpp>
43 std::pmr::memory_resource *mr =
nullptr);
55 std::pmr::memory_resource *mr =
nullptr);
67 std::pmr::memory_resource *mr =
nullptr);
80 std::pmr::memory_resource *mr =
nullptr);
99std::tuple<Value, Value, Value, Value>
102 std::pmr::memory_resource *mr =
nullptr);
112 std::pmr::memory_resource *mr =
nullptr);
122 std::pmr::memory_resource *mr =
nullptr);
134 std::pmr::memory_resource *mr =
nullptr);
145 std::pmr::memory_resource *mr =
nullptr);
155 std::pmr::memory_resource *mr =
nullptr);
165 std::pmr::memory_resource *mr =
nullptr);
187 std::pmr::memory_resource *mr =
nullptr);
199 std::pmr::memory_resource *mr =
nullptr);
211 std::pmr::memory_resource *mr =
nullptr);
223 std::pmr::memory_resource *mr =
nullptr);
241 std::pmr::memory_resource *mr =
nullptr);
254 std::pmr::memory_resource *mr =
nullptr);
Core MATLAB-compatible multidimensional array and scalar value type.
static const Value Empty
MATLAB-style empty matrix sentinel — a 0×0 DOUBLE value.
Value instbw(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Instantaneous bandwidth.
Value thd(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Total harmonic distortion in dB.
Value spectralentropy(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Shannon entropy of the normalised PSD.
Value enbw(const Value &window, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Equivalent noise bandwidth of a window (b = enbw(window, fs)).
Value spectralflatness(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Spectral flatness: geomean(P) / mean(P).
Value sinad(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Signal-to-noise-and-distortion in dB.
Value bandpower(const Value &x, const Value &fs=Value::Empty, const Value &freqrange=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Power in a frequency band (p = bandpower(x, fs, freqrange)).
Value spectralcrest(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Spectral crest: max(P) / mean(P) (peakedness).
std::tuple< Value, Value, Value, Value > obw(const Value &x, const Value &fs=Value::Empty, double p=0.99, std::pmr::memory_resource *mr=nullptr)
Occupied bandwidth at fraction p of total power ([bw, flo, fhi, power] = obw(x, fs,...
Value instfreq(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Instantaneous frequency via Hilbert transform.
Value meanfreq(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Power-weighted mean frequency.
Value spectralkurtosis(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Kurtosis of the PSD treated as a frequency distribution.
Value powerbw(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
3-dB power bandwidth around the dominant peak.
Value sfdr(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Spurious-free dynamic range in dB.
Value snr(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Signal-to-noise ratio in dB.
Value medfreq(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Median frequency.
Value spectralskewness(const Value &x, const Value &fs=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Skewness of the PSD treated as a frequency distribution.