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

TDSPFastQpsk Class Reference

#include <TDSPFastQpsk.h>

Inheritance diagram for TDSPFastQpsk:

TDSPPsk TDSPSymbolGenerator TDSPOutput1 TDSPOperator TQQObject

Detailed Description

Fast BPSK implementation
Author:
Peter Jung

Definition at line 27 of file TDSPFastQpsk.h.

Public Member Functions

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

Protected Member Functions

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


Constructor & Destructor Documentation

TDSPFastQpsk::TDSPFastQpsk char *  name = NULL  ) 
 

TDSPFastQpsk::~TDSPFastQpsk  ) 
 


Member Function Documentation

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

Reimplemented from TDSPSymbolGenerator.

Definition at line 58 of file TDSPFastQpsk.h.

References TComplex::fIm, TComplex::fRe, and NOT_DETECTED.

00058                                                    {
00059 
00060 
00061   // rotiere um 45 grad entgegen Uhrzeiger
00062   
00063   //    1
00064   //  2   0
00065   //    3
00066 
00067   Double_t x = s.fRe-s.fIm;
00068   Double_t y = s.fRe+s.fIm;
00069   
00070   // 1   0
00071   // 2   3
00072 
00073   if (x<0) {
00074     if (y>0) return 1; 
00075     if (y<0) return 2;
00076   } 
00077   if (x>0) {
00078     if (y>0) return 0;
00079     if (y<0) return 3;
00080   } 
00081   return NOT_DETECTED;
00082 }

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

Reimplemented from TDSPSymbolGenerator.

Definition at line 52 of file TDSPFastQpsk.h.

References TDSPSymbolGenerator::fSymbols.

Referenced by GenerateSymbols().

00052                                                      {
00053   Int_t r = Int_t(gRandom->Rndm()*4.0);
00054   *c = *(fSymbols+r);
00055   return r;
00056 }

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

Reimplemented from TDSPSymbolGenerator.

Definition at line 45 of file TDSPFastQpsk.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