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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? chest_rcv.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 * 04/03/06 - ineiti - adjusted description *//*************************************************************************** *                                                                         * *   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.                                   * *                                                                         * ***************************************************************************//** *  Using the midamble the channel is estimated for the given antenna. This module also removes *  the midamble part of the data stream.*/#include "spc.h"#include "sequences.h"#include "std.h"#include <math.h>#define DBG_LVL 0typedef struct {  //0-> MCCDMA, 1 -> Fra  int type; // 0  //Necessary for noise variance estimation, represnts no. Tx antennas  int num_of_antennas; // 1  // 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 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;  int calc_taps;  int align;  int index;}private_t;/* * The initialisation function, or constructor,  * is called the first time this module is instantiated. */int 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->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 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 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 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 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 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;  int data_len[2];  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; //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 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;    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;  //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;  }  // Compute the matched filter: zero-forcing equalisation  // channel_inv = ifft( 1./ fft( channel ) )  f_len = pow( 2, floor( logb( s_row ) ) );  f_abs = 0;  for ( i=0; i<f_len; i++ ){    f_inv[i] = channel[i].real + channel[i].imag*I;  }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类综合日韩欧美亚洲| 一区二区不卡在线视频 午夜欧美不卡在| 亚洲国产视频一区二区| 91网站在线观看视频| 日本一区二区电影| 91在线视频免费观看| 国产精品网站在线观看| 成人性生交大片免费看视频在线| 久久久久久97三级| 国产一区中文字幕| 国产精品麻豆视频| 日本韩国一区二区三区视频| 亚洲图片你懂的| 欧美三电影在线| 日本视频免费一区| 久久久亚洲精品石原莉奈 | 99九九99九九九视频精品| 中文字幕成人av| 99精品视频在线播放观看| 国产精品素人一区二区| 9色porny自拍视频一区二区| 亚洲综合精品自拍| 日韩精品一区二区三区视频| 国产99久久久精品| 亚洲一区影音先锋| 91精品午夜视频| 国产电影精品久久禁18| 亚洲黄色免费电影| 欧美夫妻性生活| 国产精品原创巨作av| 亚洲国产成人午夜在线一区| 三级久久三级久久久| 粉嫩欧美一区二区三区高清影视 | 成人免费三级在线| 亚洲综合色噜噜狠狠| 欧美成人伊人久久综合网| 91香蕉视频在线| 久久97超碰国产精品超碰| 亚洲另类一区二区| 国产亚洲综合av| 精品视频一区三区九区| 成人免费看黄yyy456| 蜜臂av日日欢夜夜爽一区| 日韩欧美卡一卡二| 色偷偷成人一区二区三区91 | 久久久亚洲综合| 一本到不卡精品视频在线观看| 免费在线观看视频一区| 国产精品丝袜一区| 日韩欧美激情在线| 色欧美88888久久久久久影院| 精品中文字幕一区二区| 亚洲电影一级黄| 欧美国产日韩一二三区| 欧美精品在欧美一区二区少妇| 国产91精品久久久久久久网曝门| 亚洲国产一区二区三区| 国产人伦精品一区二区| 欧美一区二区啪啪| 97国产一区二区| 国产伦精品一区二区三区在线观看| 亚洲婷婷国产精品电影人久久| 精品国产麻豆免费人成网站| 欧美日韩亚洲综合在线 | 精品视频999| 白白色 亚洲乱淫| 国产剧情在线观看一区二区| 亚洲国产成人高清精品| 国产拍欧美日韩视频二区| 在线观看日产精品| 91在线免费播放| 丁香激情综合国产| 国产一区二区不卡| 国内精品伊人久久久久影院对白| 亚洲国产成人av网| 自拍偷拍亚洲欧美日韩| 国产精品福利av| 久久久精品中文字幕麻豆发布| 精品久久国产字幕高潮| 精品久久久久久久久久久久久久久| 日韩视频在线你懂得| 欧美丰满少妇xxxbbb| 69久久夜色精品国产69蝌蚪网| 在线播放91灌醉迷j高跟美女| 91精品国产综合久久福利软件 | 7777精品伊人久久久大香线蕉 | www国产亚洲精品久久麻豆| 精品日产卡一卡二卡麻豆| 精品久久国产字幕高潮| 国产欧美日产一区| 18成人在线视频| 亚洲午夜在线电影| 青青青爽久久午夜综合久久午夜| 理论电影国产精品| 国产99久久久精品| 色猫猫国产区一区二在线视频| 欧美日韩一级大片网址| 日韩欧美成人一区| 中文字幕一区二区三| 亚洲五码中文字幕| 九九久久精品视频| 成人国产精品免费观看动漫| 一本大道久久精品懂色aⅴ| 欧美日韩国产在线观看| 日韩欧美一级二级三级| 国产精品黄色在线观看| 五月婷婷久久综合| 国产传媒日韩欧美成人| 91女神在线视频| 日韩一区二区不卡| 国产精品色在线观看| 亚洲电影一级片| 成人在线综合网| 欧美丝袜自拍制服另类| 久久这里只精品最新地址| 亚洲欧洲中文日韩久久av乱码| 丝袜美腿亚洲综合| av资源网一区| 日韩一级完整毛片| 中文一区二区在线观看| 亚洲国产精品嫩草影院| 国产精品99久久久| 欧美日韩精品电影| 国产精品你懂的在线欣赏| 麻豆精品视频在线观看| 91免费视频网| 久久久一区二区三区捆绑**| 午夜欧美大尺度福利影院在线看| 国产成人综合亚洲网站| 在线不卡一区二区| ...av二区三区久久精品| 免费欧美在线视频| 欧美亚洲综合久久| 国产精品青草久久| 蜜臀va亚洲va欧美va天堂| 在线观看日韩高清av| 国产精品午夜久久| 美日韩一区二区三区| 欧美亚洲精品一区| 中文字幕av一区二区三区| 精品一区二区三区在线观看国产| 欧美丝袜丝交足nylons图片| 国产精品毛片a∨一区二区三区| 国产又黄又大久久| 欧美电影免费观看完整版| 三级一区在线视频先锋| 欧美视频在线不卡| 亚洲日本va午夜在线电影| 国产二区国产一区在线观看| 精品电影一区二区三区| 日韩激情中文字幕| 欧美高清视频不卡网| 亚洲v中文字幕| 91久久精品国产91性色tv| 国产精品免费丝袜| 国产成人精品在线看| 久久众筹精品私拍模特| 久久国产精品99久久人人澡| 欧美狂野另类xxxxoooo| 亚洲国产成人精品视频| 欧美少妇xxx| 午夜激情综合网| 欧美老年两性高潮| 日韩av午夜在线观看| 91精品国产免费| 免费观看在线综合色| 日韩欧美一区二区视频| 免费成人av在线播放| 日韩亚洲欧美在线| 美腿丝袜亚洲一区| 久久蜜臀中文字幕| 成人一区在线看| 亚洲欧美偷拍卡通变态| 欧美午夜影院一区| 亚洲午夜视频在线观看| 欧美日韩一区二区三区免费看| 亚洲一区二区视频在线| 欧美精品国产精品| 久久精品国产亚洲aⅴ| 精品免费视频.| 国内精品久久久久影院薰衣草| 精品国产乱码久久久久久图片 | www.亚洲免费av| 依依成人精品视频| 91精品国产综合久久香蕉的特点| 麻豆成人久久精品二区三区红 | 26uuu精品一区二区| 国产精品一二三| 最新不卡av在线| 欧美日韩精品二区第二页| 狂野欧美性猛交blacked| 国产欧美va欧美不卡在线| 91一区在线观看| 日韩精品高清不卡| 欧美极品aⅴ影院| 欧美综合天天夜夜久久| 毛片基地黄久久久久久天堂| 国产精品系列在线| 欧美日韩大陆一区二区| 国产一区二区三区|