Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

TDSPFastBpsk Class Reference

#include <TDSPFastBpsk.h>

Inheritance diagram for TDSPFastBpsk:

TDSPPsk TDSPSymbolGenerator TDSPOutput1 TDSPOperator TQQObject

Detailed Description

Fast BPSK implementation
Author:
Peter Jung

Definition at line 27 of file TDSPFastBpsk.h.

Public Member Functions

 TDSPFastBpsk (char *name=NULL)
 ~TDSPFastBpsk ()

Protected Member Functions

void GenerateSymbols (Int_t, TComplex *)
Int_t GenerateSymbol (TComplex *c)
Int_t DetectSymbol (TComplex &s)


Constructor & Destructor Documentation

TDSPFastBpsk::TDSPFastBpsk char *  name = NULL  ) 
 

TDSPFastBpsk::~TDSPFastBpsk  ) 
 


Member Function Documentation

Int_t TDSPFastBpsk::DetectSymbol TComplex s  )  [inline, protected, virtual]
 

Reimplemented from TDSPSymbolGenerator.

Definition at line 62 of file TDSPFastBpsk.h.

References TComplex::fRe, and NOT_DETECTED.

00062                                                    {
00063   if (s.fRe<0) return 1;
00064   if (s.fRe>0) return 0;
00065   return NOT_DETECTED;
00066 }

Int_t TDSPFastBpsk::GenerateSymbol TComplex c  )  [inline, protected, virtual]
 

Reimplemented from TDSPSymbolGenerator.

Definition at line 52 of file TDSPFastBpsk.h.

References TDSPSymbolGenerator::fSymbols.

Referenced by GenerateSymbols().

00052                                                      {
00053   if (gRandom->Rndm()<.5) {
00054     *c      = *fSymbols;
00055     return 0;
00056   }
00057 
00058   *c = *(fSymbols+1);
00059   return 1;
00060 }

void TDSPFastBpsk::GenerateSymbols Int_t  ,
TComplex
[inline, protected, virtual]
 

Reimplemented from TDSPSymbolGenerator.

Definition at line 45 of file TDSPFastBpsk.h.

References TDSPSymbolGenerator::fISymbols, and GenerateSymbol().

00046                                    {
00047   Int_t *sym = fISymbols;
00048   for(register Int_t i=num;i;--i) 
00049     *(sym++) = GenerateSymbol(c++);
00050 }


The documentation for this class was generated from the following file:
Generated on Fri Apr 23 16:23:53 2004 by doxygen 1.3.2