Marsyas  0.5.0-beta1
Public Member Functions
PowerSpectrum Class Reference

Magnitude/power of complex spectrum. More...

#include <PowerSpectrum.h>

Inherits MarSystem.

Public Member Functions

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

Detailed Description

Magnitude/power of complex spectrum.

Computes the magnitude/power/decibels/powerdensity of a complex spectrum (as output from the Spectrum MarSystem - see its documentation for info about the spectrum format used in Marsyas). PowerSpectrum takes N/2+1 complex spectrum bins and computes the corresponding N/2+1 power/magnitude/decibels/powerdensity real values.

Controls:

See also:
Spectrum

Definition at line 44 of file PowerSpectrum.h.


Constructor & Destructor Documentation

PowerSpectrum ( std::string  name)

Definition at line 32 of file PowerSpectrum.cpp.

PowerSpectrum ( const PowerSpectrum a)

Definition at line 44 of file PowerSpectrum.cpp.

Definition at line 50 of file PowerSpectrum.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 62 of file PowerSpectrum.cpp.

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

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 105 of file PowerSpectrum.cpp.


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