dsplib 1.1.0
C++ DSP library for MATLAB-like coding
Loading...
Searching...
No Matches
snr.h
1#pragma once
2
3#include <dsplib/array.h>
4
5namespace dsplib {
6
7enum class SinadType
8{
9 Time,
10 Psd,
11 Power
12};
13
20real_t sinad(span_real sig, SinadType type = SinadType::Time);
21
28
35ThdRes thd(span_real sig, int nharm = 6, bool aliased = false, SinadType type = SinadType::Time);
36
43real_t snr(span_real sig, int nharm = 6, bool aliased = false, SinadType type = SinadType::Time);
44
45} // namespace dsplib
Definition span.h:295
Definition snr.h:23
arr_real harmpow
Power of the harmonics (dB), length depends on nharm (may be -Inf)
Definition snr.h:25
real_t value
Total harmonic distortion (dB)
Definition snr.h:24
arr_real harmfreq
Frequencies of the harmonics [0:0.5], length depends on nharm.
Definition snr.h:26