Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::BasebandAwgnGenerator< T > Class Template Reference

#include <noisegenerator.h>

Inheritance diagram for simthlib::BasebandAwgnGenerator< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 BasebandAwgnGenerator (int deviceID, simth::DeviceSystemIntf *system, const simth::PropertyList &pl=simth::PropertyList())
 ~BasebandAwgnGenerator ()
virtual void process ()
virtual void setSNR (double snr)
virtual void print (std::ostream &os) const

Static Public Member Functions

static void init (const std::string fileName, simth::Device **dev, simth::DeviceSystemIntf *sysPtr, int ID, const std::string &regionQualifier="")

Detailed Description

template<class T>
class simthlib::BasebandAwgnGenerator< T >

Generic device that adds complex gaussian noise to an complex input sequence. Actually, the elements of the input and output sequence need not to be complex but must only provide a constructor that takes two double elements. (E.g. typename T::value_type val = T::value_type(1.3,1.4) )


Constructor & Destructor Documentation

template<class T>
simthlib::BasebandAwgnGenerator< T >::BasebandAwgnGenerator int  deviceID,
simth::DeviceSystemIntf system,
const simth::PropertyList pl = simth::PropertyList()
 

template<class T>
simthlib::BasebandAwgnGenerator< T >::~BasebandAwgnGenerator  ) 
 


Member Function Documentation

template<class T>
static void simthlib::BasebandAwgnGenerator< T >::init const std::string  fileName,
simth::Device **  dev,
simth::DeviceSystemIntf sysPtr,
int  ID,
const std::string &  regionQualifier = ""
[static]
 

Reimplemented from simthlib::NoiseGenerator.

template<class T>
virtual void simthlib::BasebandAwgnGenerator< T >::print std::ostream &  os  )  const [virtual]
 

Reimplemented from simthlib::NoiseGenerator.

template<class T>
virtual void simthlib::BasebandAwgnGenerator< T >::process  )  [virtual]
 

Implements simth::Device.

template<class T>
virtual void simthlib::BasebandAwgnGenerator< T >::setSNR double  snr  )  [virtual]
 

Sets the signal-to-noise ratio to the snr given in dB as argument. Hence, the linear signal-to-noise ratio is computed by 10^(snr/10). Since the noise power per quadrature component is assumed to be 0.5, the noise power is computed by snrLin*0.5 where snrLin is the linear signal-to-noise ratio.

Implements simthlib::NoiseGenerator.


Generated on Tue Aug 9 14:39:05 2005 for simtheticlib by  doxygen 1.4.1