Marsyas
0.6.0-alpha
|
Compute SNR and variations. More...
#include <SNR.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
SNR (std::string name) | |
SNR (const SNR &a) | |
~SNR () |
Compute SNR and variations.
Computes the SNR between two mono audio signals. One signal is observation 0 and the other is observation 1.
The output is:
observation 0 is the Signal/Noise ratio in dB
10 * log10(\frac{\sum A^2}{\sum A-B})
observation 1 is the SNR with optimized gain factor
10 * log10(\frac{1}{1 - (\frac{sum A B}{\sqrt{\sum A^2 \sum B^2}})})
Controls: