IT++ Logo

ofdm.h

Go to the documentation of this file.
00001 
00031 #ifndef OFDM_H
00032 #define OFDM_H
00033 
00034 #include <itpp/base/vec.h>
00035 
00036 
00037 namespace itpp
00038 {
00039 
00046 class OFDM
00047 {
00048 public:
00050   OFDM(void) { setup_done = false; }
00052   OFDM(int inNfft, int inNcp, int inNupsample = 1);
00054   int no_carriers() {return Nfft;}
00056   void set_parameters(const int Nfft, const int Ncp, const int inNupsample = 1);
00058   cvec modulate(const cvec &input);
00060   void modulate(const cvec &input, cvec &output);
00062   cvec demodulate(const cvec &input);
00064   void demodulate(const cvec &input, cvec &output);
00065 private:
00066   double norm_factor;
00067   bool setup_done;
00068   int Nfft, Ncp, Nupsample;
00069 };
00070 
00071 } // namespace itpp
00072 
00073 #endif // #ifndef OFDM_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SourceForge Logo

Generated on Sat Feb 26 2011 16:06:33 for IT++ by Doxygen 1.7.3