Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VrAWGN< iType > Class Template Reference

#include <VrAWGN.h>

Inheritance diagram for VrAWGN< iType >:

VrSigProc List of all members.

Public Member Functions

virtual const char * name ()
 default name for a module (override with actual name)
virtual int work (VrSampleRange output, void *o[], VrSampleRange inputs[], void *i[])
 Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#].
 VrAWGN (float snr=72, float ma=1024)
void setSNR (float arg_snr)

Protected Member Functions

float ran1 ()
float gasdev ()

Protected Attributes

float maxAmp
float psnr
float sigma
long seed
int iset
float gset

template<class iType>
class VrAWGN< iType >


Constructor & Destructor Documentation

template<class iType>
VrAWGN< iType >::VrAWGN float  snr = 72,
float  ma = 1024
 


Member Function Documentation

template<class iType>
float VrAWGN< iType >::gasdev  )  [protected]
 

template<class iType>
virtual const char* VrAWGN< iType >::name  )  [inline, virtual]
 

default name for a module (override with actual name)

Reimplemented from VrSigProc.

template<class iType>
float VrAWGN< iType >::ran1  )  [protected]
 

template<class iType>
void VrAWGN< iType >::setSNR float  arg_snr  ) 
 

template<class iType>
int VrAWGN< iType >::work VrSampleRange  output,
void *  o[],
VrSampleRange  inputs[],
void *  i[]
[virtual]
 

Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#].

Pointers start at corresponding VrSampleIndex in the range params. output.size is a multiple of outputSize. Returns the number of outputs (<= output.size) that it was able to compute with the given input ranges. If this value is < output.size, forecast() will need to be called again.

Implements VrSigProc.


Member Data Documentation

template<class iType>
float VrAWGN< iType >::gset [protected]
 

template<class iType>
int VrAWGN< iType >::iset [protected]
 

template<class iType>
float VrAWGN< iType >::maxAmp [protected]
 

template<class iType>
float VrAWGN< iType >::psnr [protected]
 

template<class iType>
long VrAWGN< iType >::seed [protected]
 

template<class iType>
float VrAWGN< iType >::sigma [protected]
 


The documentation for this class was generated from the following file:
Generated on Tue Mar 15 23:47:11 2005 for GNU Radio by  doxygen 1.4.0