亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? chest_rcv_mimo_ics.c

?? This a framework to test new ideas in transmission technology. Actual development is a LDPC-coder in
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*************************************************************************** *   chest_rcv.c  - MIMO channel estimation module  *   begin          :  03/08/05 *   Author         : Selvavinayagam Gunabalan *   emails         : selvan@kth.se ***************************************************************************//*************************************************************************** *  *                                Changes *                                   ------- 03/08/05 - Selvan - Begin 03/08/14 - Selvan - Added variance of noise estimation 04/01/12 - ineiti - added a matched filter as option January - February 2004 - some other changes from Linus in order to make it work with the SISO_LPDC March 2004 - nicou: modify to search for the highest tap and pass it to the ldpc. *//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************//** *   Mimo Channel Estimation is done in the module *   Also the Midambles are removed  */#include "spc.h"#include "sequences.h"#include "std.h"#include <math.h>#define DBG_LVL 0typedef struct {  //0-> MCCDMA, 1 -> Fra  int type;  //Necessary for noise variance estimation, represnts no. Tx antennas  int num_of_antennas;  // How many taps shall be used in the channel equalisation. If you  // want to use the signal for some decoding, this is best left to  // 0 (which means the signal won't be altered and you only get a channel  // estimation). If there is some hard-decision, put it to 1 or more  int calc_taps; // 0  // 0-> don't move the signal  // else align output to the strongest tap of channel "align"  // if calc_taps > 0, then align means that the number of taps calculated  // are 'around' the peak of the channel impulse response.  int align; // 0  // The midamble-index for this chest  int index; // 0  // The length of the circular extension  int circ_ext; // 8}config_t;typedef struct {  // The channel of all N received antennas  block_t channel;  // The inversed channel  block_t channel_inv;  // The midamble  block_t midamble;  // The peaks corresponding to the NO_RX channels  block_t transfer_matrix;  // The SNR in db  double snr;  // The general noise variance = Realpart+Imagpart  int noise_var;  //Real part  int noise_var_real;  //Imag part  int noise_var_imag;  // The length of the channel impulse response  int ch_length;  // The peak of the midamble  int peak_pos;  // peak-amplitude of the midamble  int peak_amp;  // mean midamble-amplitude  int mid_amp;}stats_t;typedef struct {  SYMBOL_COMPLEX channel[ MAX_NO_OF_ANT * MAX_NO_OF_TAPS ];  SYMBOL_COMPLEX channel_inv[ MAX_NO_OF_ANT * MAX_NO_OF_TAPS ];  SYMBOL_COMPLEX *mid;  SYMBOL_COMPLEX transfer_matrix[ MAX_NO_OF_ANT ];  int calc_taps;  int align;  int index;}private_t;/* * The initialisation function, or constructor,  * is called the first time this module is instantiated. */int ics_rcv_init( swr_sdb_t *context ) {  // Begin system-definitions {  config_t *config;  stats_t *stats;  MOD_INC_USE_COUNT;  if ( sizeof( private_t ) > 0 )    context->private_data = swr_malloc( sizeof( private_t ) );  swr_sdb_get_config_struct( context->id, (void**)&config );  swr_sdb_get_stats_struct( context->id, (void**)&stats );  // } End of system-definitions  config->type = 0;  config->num_of_antennas = 1;   //SISO case!  config->calc_taps = 0;  config->align = 0;  config->index = 0;  config->circ_ext = 8;  private->mid = NULL;  stats->transfer_matrix.data = private->transfer_matrix;  stats->transfer_matrix.size = MAX_NO_OF_ANT;  stats->transfer_matrix.type = SIG_SYMBOL_COMPLEX;    stats->channel.data = private->channel;  stats->channel.size = MAX_NO_OF_ANT * MAX_NO_OF_TAPS;  stats->channel.type = SIG_SYMBOL_COMPLEX;  stats->channel_inv.data = private->channel_inv;  stats->channel_inv.size = MAX_NO_OF_ANT * MAX_NO_OF_TAPS;  stats->channel_inv.type = SIG_SYMBOL_COMPLEX;  stats->midamble.size = 0;  stats->midamble.type = SIG_SYMBOL_COMPLEX;  stats->ch_length = 0;  stats->snr       = 1.0;    stats->noise_var    = 0;  stats->noise_var_real = 0;  stats->noise_var_imag = 0;  stats->peak_pos = 0;  stats->mid_amp = 0;  stats->peak_amp = 0;  // Begin system-definitions  swr_sdb_free_stats_struct( context->id, (void**)&stats );  swr_sdb_free_config_struct( context->id, (void**)&config );  return 0;  // End system-definitions}/* * Every time modules from the outside change the value of a configuration parameter, * this function is called. */int ics_rcv_reconfig( swr_sdb_t *context ) {  // Definition of variables - don't touch  config_t *config;  stats_t *stats;  swr_sdb_get_config_struct( context->id, (void**)&config );  swr_sdb_get_stats_struct( context->id, (void**)&stats );  if ( ( config->type >= TRAINING_SEQUENCES ) ||       ( config->type < 0 ) ) {    PR_DBG( 0, "Midamble-type %i not available, "	    "only 0..%i are valuable types.\n",            config->type, TRAINING_SEQUENCES - 1 );    config->type = TRAINING_SEQUENCES - 1;  }  private->calc_taps =     min( config->calc_taps, MAX_NO_OF_ANT * MAX_NO_OF_TAPS );  private->align = config->align;  private->index = config->index;  if ( private->mid ){    swr_free( private->mid );    private->mid = 0;  }  stats->midamble.size = training_seq[ config->type ].Nt;  private->mid = swr_malloc( sizeof( SYMBOL_COMPLEX ) * 			     stats->midamble.size );  stats->midamble.data = private->mid;  // Definition - don't touch  swr_sdb_free_stats_struct( context->id, (void**)&stats );  swr_sdb_free_config_struct( context->id, (void**)&config );  return 0;}/* * To configure the inputs * this is called when the output-sizes change. */int ics_rcv_configure_inputs( swr_sdb_t *context ) {  // Definition of variables - don't touch  config_t *config;  swr_sdb_get_config_struct( context->id, (void**)&config );  size_in(0) = size_out(0) + training_seq [ config->type ].Nt +    config->circ_ext;  // Definition - don't touch  swr_sdb_free_config_struct( context->id, (void**)&config );  return 0;}/* * To configure the outputs * this is called when the input-sizes change */int ics_rcv_configure_outputs( swr_sdb_t *context ) {  // Definition of variables - don't touch  config_t *config;  swr_sdb_get_config_struct( context->id, (void**)&config );  size_out(0) = size_in(0) - training_seq[ config->type ].Nt -     config->circ_ext;  // Definition - don't touch  swr_sdb_free_config_struct( context->id, (void**)&config );  return 0;}/** * Calculate the convolution of the signal with the matched filter */void ics_do_mafi( SYMBOL_COMPLEX *in, SYMBOL_COMPLEX *out,	      complex double *f, double f_abs, int taps, int length ){  int i, j;  for ( i=0; i<length; i++ ){    complex double o;    o = SC_MULT_CD( in[i], f[0] );    for ( j=1; j<taps; j++ ){      o += SC_MULT_CD( in[i+j], f[-j] );    }    out[i] = CD_TO_SC( o / f_abs );  }}/* * This is the function that implements the `main method' of the class * Every class has got just ONE method/working-mode. */int ics_rcv_pdata( swr_sdb_t *context ) {  // Definition of variables - don't touch  stats_t *stats;  config_t *config;  SYMBOL_COMPLEX *in,*out, *mid, *channel, *channel_inv, *transfer_matrix;  int data_len[2],    transfer_matrix_pos[4];  int type, num_of_antennas, peak_pos = 0, peak_amp, mid_amp, circ_ext;  short s_column; // Number of columns of shsish (S Hermitian S )inverse S hermitian matrix  short s_row;  //Number of rows of shsish (S Hermitian S )inverse S hermitian matrix  short i,j,mp_pos; //counter  double *par; //Parity matrix = shsish  short int *seq;  short channel_offset;  short seq_offset;  short length;  double double_real = 0.;  double double_imag = 0.;  double max_peak = 0;  double tmp =0.;    int noise_term_real  = 0;  int noise_term_imag  = 0;  int real_term = 0;  int imag_term = 0;  double var_noise_term_imag = 0,    var_noise_term_real = 0;    int noise_var = 0;  int noise_var_real = 0;  int noise_var_imag = 0;   double sig_power = 0.;  complex double f_inv[ 128 ];  int f_len, f_max = 0;  double f_abs;  int started = context->time_prepare;    in = buffer_in(0);  out = buffer_out(0);  // These two might actually differ...  data_len[0] = size_out(0) / 2;  data_len[1] = size_out(0) - data_len[0];  swr_sdb_get_config_struct( context->id, (void**)&config );  type            = config->type;  num_of_antennas = config->num_of_antennas;  circ_ext = config->circ_ext;  swr_sdb_free_config_struct( context->id, (void**)&config );  //Points to the last Midamble rcvd  mid = in + data_len[0] + training_seq[ type ].Nt - 1;  channel = private->channel;  channel_inv = private->channel_inv;  transfer_matrix = private->transfer_matrix;  //Matrix Multiplication of sshish_ * received midamble  s_column = (training_seq[ type ].Nt - training_seq[ type ].L + 1 );  s_row    =  training_seq[ type ].M * training_seq[ type ].L;  par    = training_seq[ type ].shsish;  seq    = training_seq[ type ].sequence;  for (i = 0; i < s_row; i++) {    double_real = 0.;    double_imag = 0.;    for (j = 0; j < s_column; j++) {      double_real += par[ 2*j + 2*i*s_column ] * mid[ -j ].real - 	par[ 2*j + 1 + 2*i*s_column ] * mid[ -j ].imag;      double_imag += par[ 2*j + 2*i*s_column ] * mid[ -j ].imag + 	par[ 2*j + 1 + 2*i*s_column ] * mid[ -j ].real;    }    channel[ i ].real = double_real; //Quantization double -> int    channel[ i ].imag = double_imag;  }  // get the peaks and construct the complex channel matrix  // of size NO_RX  // you get it row by row because one chest is estimating   // one row of the channel transfer matrix      for ( i=0; i < MAX_NO_OF_ANT; i++ ){    max_peak = 0;    mp_pos = 0;    for ( j=0; j<MAX_NO_OF_TAPS; j++ ){      if ( max_peak < cabs( SC_TO_CD( channel[j + i * MAX_NO_OF_TAPS] ) )){	max_peak = cabs( SC_TO_CD( channel[j + i * MAX_NO_OF_TAPS] ) );

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性猛交xxxx黑人交| 国产精品传媒视频| 欧美国产精品一区二区| 亚洲男人天堂一区| 国内精品国产三级国产a久久 | 欧美日韩免费一区二区三区 | 国产精品中文有码| 在线亚洲精品福利网址导航| 国产嫩草影院久久久久| 免费人成黄页网站在线一区二区| 97精品电影院| 国产亚洲一区二区三区| 久久不见久久见免费视频7| 欧美亚洲日本一区| 国产精品成人网| 国产激情视频一区二区在线观看| 91精品国产91综合久久蜜臀| 亚洲综合色婷婷| 一本到三区不卡视频| 中文字幕乱码亚洲精品一区| 国产美女久久久久| 亚洲精品在线电影| 久久国产人妖系列| 欧美变态tickle挠乳网站| 日韩激情视频在线观看| 欧美日韩一级黄| 一二三四区精品视频| 91高清视频在线| 亚洲伊人色欲综合网| 在线影院国内精品| 亚洲精品中文在线| 色哟哟一区二区在线观看| 亚洲精品自拍动漫在线| 91福利在线播放| 亚洲大片免费看| 欧美高清一级片在线| 视频一区在线视频| 日韩欧美二区三区| 国产高清成人在线| 日韩一区中文字幕| 欧洲日韩一区二区三区| 五月婷婷另类国产| 日韩欧美精品在线视频| 另类人妖一区二区av| 欧美精品一区二区精品网| 国产麻豆精品在线观看| 国产精品美女久久久久高潮| 99精品国产91久久久久久| 亚洲精品水蜜桃| 欧美精品视频www在线观看| 日本不卡一二三| 久久亚洲影视婷婷| 99精品在线免费| 亚洲国产aⅴ成人精品无吗| 日韩三级在线观看| 国产91富婆露脸刺激对白| 一区二区三区欧美久久| 日韩免费福利电影在线观看| 国产91精品久久久久久久网曝门 | 国产欧美一区二区精品仙草咪| 粉嫩高潮美女一区二区三区| 一区二区三区视频在线看| 制服丝袜亚洲网站| 国产成人aaa| 亚洲国产精品久久不卡毛片| 精品精品国产高清一毛片一天堂| 丁香六月久久综合狠狠色| 一区二区三区免费看视频| 精品日韩在线一区| 一本久道中文字幕精品亚洲嫩| 蜜臀久久久久久久| 亚洲女女做受ⅹxx高潮| 亚洲精品在线三区| 欧美午夜不卡在线观看免费| 国产在线精品一区二区夜色| 亚洲制服丝袜在线| 国产女同性恋一区二区| 欧美日韩国产一级片| 99久久精品国产精品久久| 麻豆精品视频在线观看免费| 亚洲欧美另类小说视频| 久久久久久久网| 在线电影国产精品| 色综合久久六月婷婷中文字幕| 激情文学综合插| 亚洲成人一区在线| 亚洲另类在线视频| 国产欧美一区二区精品婷婷| 日韩欧美国产一区在线观看| 在线观看视频91| 99热这里都是精品| 国产乱子轮精品视频| 久久 天天综合| 日韩影院免费视频| 亚洲自拍偷拍欧美| 亚洲女子a中天字幕| 国产精品区一区二区三区| 久久蜜臀中文字幕| 欧美精品一区二区高清在线观看 | 美女视频黄久久| 亚洲福利电影网| 亚洲综合一二区| 一区二区三区成人| 国产精品久久久久毛片软件| 国产午夜精品理论片a级大结局| 欧美大肚乱孕交hd孕妇| 欧美三级视频在线| 欧美日韩大陆在线| 欧美高清性hdvideosex| 欧美日韩三级一区| 欧美男人的天堂一二区| 欧美怡红院视频| 欧美日韩精品一二三区| 欧美日韩免费高清一区色橹橹| 91激情五月电影| 欧美日本韩国一区| 日韩欧美的一区二区| 欧美成人伊人久久综合网| 日韩西西人体444www| 日韩精品一区在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 久久久久国色av免费看影院| 久久九九久精品国产免费直播| 欧美激情一区二区三区全黄| 国产精品久久国产精麻豆99网站| 国产精品蜜臀av| 亚洲情趣在线观看| 午夜伊人狠狠久久| 日本vs亚洲vs韩国一区三区二区| 精品一区二区在线看| 国产精品一区二区在线播放| 成人97人人超碰人人99| 欧美在线一二三| 日韩一级完整毛片| 国产午夜三级一区二区三| 国产亚洲1区2区3区| 亚洲免费成人av| 男女男精品视频| 丁香激情综合国产| 欧美午夜宅男影院| 欧美r级在线观看| 国产精品福利一区二区三区| 一区二区三区 在线观看视频| 亚洲va欧美va人人爽午夜| 久国产精品韩国三级视频| 91在线视频播放地址| 7777精品伊人久久久大香线蕉超级流畅| 精品乱人伦一区二区三区| 中文字幕欧美一区| 日韩电影一区二区三区四区| 成人午夜在线视频| 在线播放91灌醉迷j高跟美女| 久久影视一区二区| 亚洲成人自拍一区| 成人午夜短视频| 在线成人午夜影院| 中文字幕日韩欧美一区二区三区| 日本中文字幕不卡| av午夜精品一区二区三区| 欧美岛国在线观看| 夜夜嗨av一区二区三区中文字幕| 激情欧美一区二区| 欧美色网一区二区| 国产精品女上位| 久久99九九99精品| 欧美三级日韩三级| 日韩美女啊v在线免费观看| 久久国产视频网| 欧美精品 国产精品| 亚洲同性同志一二三专区| 国产精品一区二区果冻传媒| 这里只有精品99re| 亚洲国产视频在线| 99久久国产综合精品女不卡| 久久久一区二区三区捆绑**| 丝袜诱惑制服诱惑色一区在线观看| 成人av片在线观看| 久久精品无码一区二区三区| 免费在线欧美视频| 欧美日韩视频不卡| 亚洲成人先锋电影| 欧美日韩专区在线| 亚洲免费大片在线观看| av中文字幕一区| 国产精品嫩草久久久久| 国产精品一二三四五| 欧美一级xxx| 日韩电影在线免费看| 欧美高清视频在线高清观看mv色露露十八| 综合激情网...| 日本久久一区二区三区| 亚洲激情图片qvod| 色先锋久久av资源部| 亚洲视频免费在线| 91久久香蕉国产日韩欧美9色| 亚洲色图另类专区| 色综合久久久久综合| 亚洲综合色噜噜狠狠| 欧美日韩一区二区在线观看视频| 亚洲电影在线免费观看|