Marsyas  0.5.0-beta1
Public Member Functions
SNR Class Reference

Compute SNR and variations. More...

#include <SNR.h>

Inherits MarSystem.

Public Member Functions

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 SNR (std::string name)
 SNR (const SNR &a)
 ~SNR ()

Detailed Description

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}})})


Definition at line 51 of file SNR.h.

Constructor & Destructor Documentation

SNR ( std::string  name)

Definition at line 25 of file SNR.cpp.

SNR ( const SNR a)

Definition at line 34 of file SNR.cpp.

~SNR ( )

Definition at line 45 of file SNR.cpp.

Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 50 of file SNR.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 77 of file SNR.cpp.

The documentation for this class was generated from the following files: