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

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

?? chest_rcv_mimo.c

?? 軟件無線電的平臺
?? 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 * 04/03/27 - ineiti - added a very simple mimo-reception * 04/04/08 - ineiti - added a complex stats-var for testing *//*************************************************************************** *                                                                         * *   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. *  It does assume that there are a maximum of training_seq[].M senders, and that  * each sender has an increasing index. This means that a sender has at most * training_seq[].L channel taps. *  Each output corresponds to one sender. So, if you want to receive sender #2, * connect to output #2 */#include "spc.h"#include "sequences.h"#include "std.h"#include <math.h>#define DBG_LVL 0#define MAX_CHANNELS 4typedef 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; // 4  // 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; // 1  // 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;  // Test  complex double var11;}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_mimo_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 = 4;  config->align = 1;  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;  stats->var11 = 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_mimo_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, training_seq[ config->type ].L );  private->align = config->align;  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_mimo_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;  PR_DBG( 0, "Trying to resize input, this is not good!\n" );  // 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_mimo_configure_outputs( swr_sdb_t *context ) {  // Definition of variables - don't touch  config_t *config;  int ch, size;  swr_sdb_get_config_struct( context->id, (void**)&config );  size =  size_in(0) - training_seq[ config->type ].Nt - config->circ_ext;  for ( ch=0; ch<MAX_CHANNELS; ch++ ){    size_out(ch) = size;  }  // Definition - don't touch  swr_sdb_free_config_struct( context->id, (void**)&config );  return 0;}void do_mafi( SYMBOL_COMPLEX *in, SYMBOL_COMPLEX *out,	      complex double *f, double f_abs, int taps, int length );/* * This is the function that implements the `main method' of the class * Every class has got just ONE method/working-mode. */int rcv_mimo_pdata( swr_sdb_t *context ) {  // Definition of variables - don't touch  stats_t *stats;  config_t *config;  SYMBOL_COMPLEX *in, *out[MAX_CHANNELS], *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  int i,j, ch; //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;  int seq_length, seq_ch_taps, seq_max_ant;   double sig_power = 0.;  complex double f_invs[ MAX_CHANNELS ][ 128 ];  int f_len, f_max = 0;  double f_abs = 0;  in = buffer_in(0);  for ( ch=0; ch<MAX_CHANNELS; ch++ ){    if ( port_out(ch).sdb_id >= 0 ){      PR_DBG( 4, "Got output %i\n", ch );      out[ch] = buffer_out(ch);    } else {      out[ch] = NULL;    }  }  swr_sdb_get_config_struct( context->id, (void**)&config );  type        = config->type;  seq_length  = training_seq[ type ].Nt;  seq_ch_taps = training_seq[ type ].L;  seq_max_ant = training_seq[ type ].M;  i = size_in(0) - seq_length - config->circ_ext;  // These two might actually differ...  data_len[0] = i / 2;  data_len[1] = i - data_len[0];  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] + seq_length - 1;  channel = private->channel;  channel_inv = private->channel_inv;  //Matrix Multiplication of sshish_ * received midamble  s_column = (seq_length - seq_ch_taps + 1 );  s_row    =  seq_max_ant * seq_ch_taps;  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 ) )  // We have to do this once for every received channel  {    f_len = pow( 2, floor( logb( seq_ch_taps ) ) );    for ( ch=0; ch<num_of_antennas; ch++ ){      int ch_off = ch * seq_ch_taps;      complex double *f_inv = f_invs[ch];      if ( out[ ch ] ) {	f_abs = 0;	for ( i=0; i<f_len; i++ ){	  f_inv[i] = SC_TO_CD( channel[ i+ch_off ] );

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频自拍| 免费在线观看一区| 日韩精品一区二区三区四区视频| 国产成人av一区| 亚洲第四色夜色| 国产精品久久久久一区二区三区| 欧美r级在线观看| 欧美日韩高清一区二区不卡| 不卡的av中国片| 国产乱子伦视频一区二区三区| 亚洲成人动漫av| 亚洲影院免费观看| 亚洲人成网站精品片在线观看| 久久久国产精品午夜一区ai换脸| 欧美一区二区三区在| 欧美日韩美女一区二区| 91视视频在线观看入口直接观看www| 国产一区二区在线视频| 日本亚洲天堂网| 亚洲成人精品一区| 亚洲第一主播视频| 一区二区三区四区亚洲| 欧美国产丝袜视频| 国产网红主播福利一区二区| 亚洲精品一区二区精华| 欧美一卡2卡3卡4卡| 玉米视频成人免费看| 亚洲美女精品一区| 亚洲免费在线观看| 亚洲综合在线观看视频| 亚洲老司机在线| 亚洲欧美日韩中文播放| 亚洲欧洲www| 综合久久久久久| 亚洲欧美另类久久久精品| 亚洲四区在线观看| 亚洲综合色自拍一区| 亚洲综合在线电影| 亚洲成人综合在线| 日本成人在线看| 久久99精品久久久久久国产越南 | 亚洲美女免费视频| 亚洲美女淫视频| 亚洲影视在线播放| 亚洲成av人在线观看| 日韩高清一区在线| 久久精品久久久精品美女| 久久精品72免费观看| 国产精品 欧美精品| 成人自拍视频在线观看| 99久久精品99国产精品| 91啦中文在线观看| 欧美高清视频一二三区 | 国产一区二区三区四区五区美女| 麻豆视频观看网址久久| 国精产品一区一区三区mba视频 | 蜜臀av一级做a爰片久久| 麻豆精品视频在线观看视频| 国产综合色产在线精品| 成人精品一区二区三区四区 | 国产肉丝袜一区二区| 综合分类小说区另类春色亚洲小说欧美| 亚洲人成影院在线观看| 亚州成人在线电影| 国产一区 二区| 一本大道久久a久久精品综合| 欧美日韩激情一区二区| 精品久久99ma| 亚洲欧洲在线观看av| 欧美探花视频资源| 日韩精品一区二区三区视频 | 国产精品灌醉下药二区| 亚洲在线观看免费| 韩国精品在线观看| 91高清视频在线| 日韩亚洲欧美综合| 17c精品麻豆一区二区免费| 五月激情综合色| 粉嫩久久99精品久久久久久夜| 欧美丝袜第三区| 国产午夜精品一区二区| 亚洲午夜久久久久久久久电影院| 韩国三级在线一区| 欧美三级电影一区| 国产肉丝袜一区二区| 天堂午夜影视日韩欧美一区二区| 国产精品亚洲视频| 欧美精品日日鲁夜夜添| 日本一区免费视频| 日本系列欧美系列| 一本大道久久精品懂色aⅴ| www国产亚洲精品久久麻豆| 亚洲精品国产a久久久久久| 韩国精品一区二区| 欧美日韩亚洲综合在线| 国产精品久久看| 精品影视av免费| 欧美日本韩国一区二区三区视频| 国产精品国产三级国产普通话蜜臀| 免费人成在线不卡| 欧美综合久久久| 国产精品免费aⅴ片在线观看| 91精品在线免费| 一区二区视频免费在线观看| 国产激情视频一区二区在线观看 | 色国产精品一区在线观看| 2020国产精品自拍| 人人精品人人爱| 欧美日韩日日夜夜| 亚洲精品免费看| 97精品国产97久久久久久久久久久久| 精品国产乱码91久久久久久网站| 亚洲午夜精品网| 91免费精品国自产拍在线不卡| 久久亚洲精品小早川怜子| 日韩av电影天堂| 555www色欧美视频| 亚洲成人资源网| 欧美影院一区二区三区| 亚洲日本青草视频在线怡红院| 粉嫩蜜臀av国产精品网站| 久久亚洲捆绑美女| 国产乱码精品一区二区三区五月婷 | 日韩激情中文字幕| 欧美午夜精品久久久久久超碰| 亚洲精品午夜久久久| 色悠悠亚洲一区二区| 中文字幕日本不卡| 色综合中文字幕| 一级女性全黄久久生活片免费| 91电影在线观看| 一区二区国产盗摄色噜噜| 日本二三区不卡| 亚洲一二三区不卡| 欧美精品亚洲二区| 乱一区二区av| 精品国产乱码久久久久久蜜臀| 激情成人午夜视频| 国产欧美精品日韩区二区麻豆天美| 国产经典欧美精品| 1000部国产精品成人观看| 99精品在线免费| 一区二区高清在线| 欧美美女视频在线观看| 免费不卡在线观看| 久久久久久久久久看片| 成人激情小说网站| 一区二区三区四区中文字幕| 欧美日韩国产大片| 久久精品国产色蜜蜜麻豆| 久久精品免视看| 波波电影院一区二区三区| 亚洲色图丝袜美腿| 欧美男男青年gay1069videost | 亚洲电影视频在线| 欧美一级黄色片| 国产麻豆欧美日韩一区| 成人午夜视频在线| 亚洲伦在线观看| 欧美人动与zoxxxx乱| 国产一区福利在线| 国产精品久久久久国产精品日日| 91日韩精品一区| 日韩国产精品大片| 国产区在线观看成人精品 | 欧美成人精品3d动漫h| 国产乱色国产精品免费视频| 亚洲摸摸操操av| 日韩女优av电影| 91视频观看视频| 蜜桃视频在线一区| 国产精品成人一区二区艾草| 欧美日韩和欧美的一区二区| 国产一区二区三区免费在线观看| 成人免费在线视频观看| 欧美一激情一区二区三区| 国产成人免费9x9x人网站视频| 伊人一区二区三区| 亚洲精品一区二区精华| 欧美系列亚洲系列| 国产精品亚洲人在线观看| 亚洲午夜在线视频| www一区二区| 欧美日韩夫妻久久| av成人免费在线| 精品一区二区在线观看| 亚洲精品免费看| 久久久综合九色合综国产精品| 欧美性xxxxxxxx| 成人理论电影网| 精一区二区三区| 亚洲自拍欧美精品| 国产免费观看久久| 欧美成人官网二区| 在线一区二区三区做爰视频网站| 国产精品99久| 日本91福利区| 亚洲成人av福利| 依依成人精品视频| 亚洲欧美中日韩|