00001 #include <itpp/itcomm.h> 00002 00003 using namespace itpp; 00004 00005 int main() 00006 { 00007 // Declare my_channel variable as an instance of the Rayleigh_Channel 00008 // class 00009 TDL_Channel my_channel; 00010 00011 // The normalized Doppler frequency is set to 0.1 00012 double norm_dopp = 0.1; 00013 my_channel.set_norm_doppler(norm_dopp); 00014 00015 // Generate nrof_samples of the fading process and store them in ch_coeffs 00016 // matrix 00017 int nrof_samples = 10000; 00018 cmat ch_coeffs; 00019 my_channel.generate(nrof_samples, ch_coeffs); 00020 00021 // Open an output file "rayleigh_test.it" 00022 it_file ff("rayleigh_test.it"); 00023 00024 // Save channel coefficients to the output file 00025 ff << Name("ch_coeffs") << ch_coeffs; 00026 00027 // Close the output file 00028 ff.close(); 00029 00030 // Exit program 00031 return 0; 00032 }
Generated on Tue Apr 14 17:57:51 2009 for RMOL by Doxygen 1.5.8