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

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

?? rake_supp.c

?? matlab實現wcdma的全過程
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* | | Copyright disclaimer: |   This software was developed at the National Institute of Standards |   and Technology by employees of the Federal Government in the course |   of their official duties. Pursuant to title 17 Section 105 of the |   United States Code this software is not subject to copyright |   protection and is in the public domain. | |   We would appreciate acknowledgement if the software is used. |*//* | Project:	WCDMA simulation environment | Module:      RAKE receiver functions. | Author:      Tommi Makelainen, Nokia Research Center | Date:        February 3, 1999 | | History: |              Februrary 3, 1999 Tommi Makelainen |                      Initial version. | |              April 7, 1999 Tommi Makelainen |                      Updated the whole algorithm. | |              May 10, 1999 Tommi Makelainen |                      Corrected indexing error in finger combining. | |              May 20, 1999 Tommi Makelainen |                      Corrected indexing error in spreading of  |                      delayed chips. |                      If channel changes, finger allocation |                      now changes allocation after FAST_FADE_TIME |                      slots. | */#include <stdio.h>#include <stdlib.h>#include <math.h>#include "config_wcdma.h"#include "spreading.h"#include "rake.h"#ifndef TRUE#define TRUE 1#define FALSE 0#endif /* TRUE */#define UNKNOWN 1#define EXISTING 2#define NEW 3/* -------------------------------------------------------------------- *//* * Function:	wcdma_rake_finger_alloc * Desc.:	Selects 'finger_count' strongest multipath components *		from the channel impulse response. *		If the fingers are already allocated, then an individual *		finger must be FAST_FADE_TIME below the threshold *		FINGER_ALLOC_THRESHOLD. * * Note:	 *		Channel impulse response is expected as an input and *		is not estimated from the received signal. */int wcdma_rake_finger_alloc(           int instance,		/* IN: instance number */           int init_flag,	        /* IN: init flag, TRUE = init */	   int channel_delays[],	/* IN: channel estimate */	   double channel_amplitudes[],	/* IN: channel estimate */           int channel_len,		/* IN: channel estimate length */           int code_len,                /* IN: length of spreading code */           int data_len,                /* IN: length of input data vector */           int nFingers,		/* IN: number_fingers in use */           finger_type *fingers,	/* IN/OUT: finger data */           mem_chips_t *prev_rake_chips, /* IN: data of old chips */           rake_data_type *misc_data)    /* OUT: rake related data */{    int candidates[MAX_CHANNEL_LEN];    int used_tap_candidates[MAX_CHANNEL_LEN];    int tmp_candidate;    int i, j, k, tap_status, stable_taps;    /*     * Mark all candidates with an initial value.     */    for (i=0; i < MAX_CHANNEL_LEN; i++) candidates[i] = i;    for (i=0; i < MAX_CHANNEL_LEN; i++) used_tap_candidates[i] = FALSE;    tap_status = UNKNOWN;    /*     * Search through the channel estimate and select     * 'finger_count' strongest taps to 'candidates' vector.     * The candidate vector is sorted in descending order.     */    for (i=0; i < channel_len; i++) {        for (j=i+1; j < channel_len; j++) {            if (channel_amplitudes[ candidates[i] ] <                 channel_amplitudes[ candidates[j] ] ) {               /*                * Swap indexes i and j.                */               tmp_candidate = candidates[j];               candidates[j] = candidates[i];               candidates[i] = tmp_candidate;            } /* if */        } /* for j */    } /* for i */    /*     * Compare current candidates with the existing finger allocation.     * If a finger has been FAST_FADE_TIME frames time below the threshold     * FINGER_ALLOC_THRESHOLD, change allocation of the finger.     * If there is no tap on the previous delay, but there is a new tap     * within CHANNEL_TAP_DRIFT chips, assume that the multipath component     * has drifted in time.     * Fingers are allocated in descending amplitude order, i.e. strongest     * multipath component first.     */    if (init_flag != TRUE) {        stable_taps = 0;        for (i=0, j=0; i < nFingers; i++) {            tap_status = UNKNOWN;            j = 0;            /*             * If finger not previously allocated, skip out.             */            if (fingers[i].status == -1) continue;            /*             * Search the current finger delay match in new channel estimate.             * Match is found only if there is a tap on the finger delay             * and tap amplitude in channel response is above              * FINGER_ALLOC_THRESHOLD.             */            for (k=0; k < channel_len; k++) {                 if ( (fingers[i].delay == channel_delays[ candidates[j] ]) &&                      (fingers[i].amplitude > FINGER_ALLOC_THRESHOLD) ) {                     tap_status = EXISTING;                     fingers[i].amplitude = channel_amplitudes[candidates[j]];                     used_tap_candidates[j] = TRUE;                     stable_taps++;                 }                 j++;            } /* for k over channel_len */            /*             * Tap delay allocated to current finger is not available             * in the current channel impulse response.             */            if (tap_status == UNKNOWN) {#ifdef TESTING                printf("instance %d, finger %d, channel changes, status %d\n",                       instance, i, fingers[i].status);#endif /* TESTING */                if (fingers[i].status < FAST_FADE_TIME) {                    fingers[i].status += 1;                    stable_taps++;                } else {                    /*                     * tap delay in finger has not been present                     * in channel response for FAST_FADE_TIME                      * slots, release the current allocation.                     */                    fingers[i].status = -1;#ifdef TESTING                    printf("instance %d, %d finger released\n",                           instance, i);#endif /* TESTING */                } /* else */            } /* if tap_status */        } /* for nFingers*/        /*         * Chech if channel response has changed.         */        if (stable_taps < nFingers) {            /* allocate released finger to a new tap */            for (i=0; i < nFingers; i++) {                if (fingers[i].status == -1) {                    /*                     * Search strongest not allocated channel tap.                     */                    for (j=0; j < channel_len; j++) {                        if (used_tap_candidates[j] == FALSE) {                            /*                             * Test that new channel tap candidate                             * has amplitude that is above                              * FINGER_ALLOC_THRESHOLD.                             * If not, keep the previous allocation                             * even though it has exceeded                             * FAST_FADE_TIME.                             */                            if (channel_amplitudes[ candidates[j] ] <                                FINGER_ALLOC_THRESHOLD) {                                   fingers[i].status = FAST_FADE_TIME - 1;                                break;                            }#ifdef TESTING   printf("instance %d,chan index %d, new allocation for finger %d, delay %d\n",                            instance, j, i, channel_delays[candidates[j]]);#endif /* TESTING */                            fingers[i].status = 0;                            fingers[i].delay = channel_delays[ candidates[j] ];                            fingers[i].amplitude =                                          channel_amplitudes[ candidates[j] ];                            fingers[i].weight = 1.0;                            fingers[i].fill_index = 0;                            fingers[i].combine_index = 0;                            used_tap_candidates[j] = TRUE;                            fingers[i].nOutputs = 0;                            fingers[i].old_chips =                                   (data_len - fingers[i].delay) % code_len;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品高清在线| 亚洲一二三四在线| 精品国一区二区三区| 6080国产精品一区二区| 制服视频三区第一页精品| 欧美老年两性高潮| 欧美日本在线播放| 欧美日本视频在线| 日韩久久免费av| 亚洲精品一区二区三区福利 | 亚洲免费三区一区二区| 中文字幕一区二区不卡| 国产欧美1区2区3区| 中文字幕一区二区三区不卡在线| 国产精品久久久久精k8| 亚洲图片另类小说| 香蕉成人伊视频在线观看| 午夜精品久久久久久久99水蜜桃 | 欧美大黄免费观看| 久久精品夜色噜噜亚洲aⅴ| 国产视频视频一区| 亚洲六月丁香色婷婷综合久久| 悠悠色在线精品| 免费一区二区视频| 国产东北露脸精品视频| 99精品视频在线观看免费| 精品视频在线免费看| 精品国精品国产| 国产精品久久三| 亚洲一区二区三区四区在线| 免费一区二区视频| 91偷拍与自偷拍精品| 欧美一区二区三区视频免费| 国产精品无码永久免费888| 亚洲精品成人悠悠色影视| 蜜桃视频免费观看一区| 不卡视频免费播放| 宅男在线国产精品| 亚洲丝袜另类动漫二区| 日韩电影在线一区| 成人激情动漫在线观看| 777a∨成人精品桃花网| 中文字幕亚洲综合久久菠萝蜜| 日本 国产 欧美色综合| 成人av在线电影| 精品卡一卡二卡三卡四在线| 一区二区成人在线观看| 国产99久久精品| 欧美电视剧在线观看完整版| 亚洲二区在线视频| 成人91在线观看| 久久美女高清视频| 免费在线观看不卡| 欧美日韩精品高清| 亚洲精品乱码久久久久久| 成人av网在线| 久久久99久久| 国产在线国偷精品产拍免费yy| 欧美精品乱码久久久久久按摩| 亚洲欧洲制服丝袜| 本田岬高潮一区二区三区| 久久久精品免费免费| 美女一区二区视频| 7777精品久久久大香线蕉| 亚洲国产精品一区二区久久恐怖片| 波多野结衣在线aⅴ中文字幕不卡| 久久青草国产手机看片福利盒子| 青草国产精品久久久久久| 欧美日韩视频在线第一区| 亚洲精品精品亚洲| 日本韩国精品一区二区在线观看| 中文在线免费一区三区高中清不卡| 美女免费视频一区二区| 日韩西西人体444www| 欧美a一区二区| 欧美一区二区三区的| 奇米在线7777在线精品| 69堂成人精品免费视频| 亚洲成av人片在线观看无码| 在线观看国产91| 丝袜亚洲精品中文字幕一区| 6080日韩午夜伦伦午夜伦| 奇米一区二区三区av| 欧美va亚洲va在线观看蝴蝶网| 免费人成黄页网站在线一区二区| 日韩一区二区三区av| 精品一区二区三区免费观看| 国产亚洲综合av| 色噜噜狠狠色综合中国| 香蕉久久夜色精品国产使用方法 | 日韩不卡一二三区| 欧美一级二级三级蜜桃| 国产一区二区三区久久悠悠色av| 国产亚洲成年网址在线观看| 99久久婷婷国产| 亚洲国产精品一区二区久久恐怖片 | 不卡的电影网站| 亚洲精品日产精品乱码不卡| 欧美高清一级片在线| 国产一区二区在线观看视频| 中文字幕一区二区三区在线不卡| 在线观看视频91| 韩国在线一区二区| 亚洲精品水蜜桃| 这里是久久伊人| 国产a视频精品免费观看| 一区二区在线观看av| 欧美电影免费观看高清完整版在线观看 | 这里只有精品免费| 成人在线视频一区| 亚洲成av人影院在线观看网| 久久嫩草精品久久久精品| 99久精品国产| 久久99精品久久只有精品| 中文字幕一区二区三区在线不卡 | 久久综合色之久久综合| 91亚洲男人天堂| 蓝色福利精品导航| 中文字幕一区二区三区视频 | 国产精品996| 亚洲午夜电影网| 国产欧美一区二区精品性色| 欧美日韩免费观看一区二区三区| 国产精品一区二区无线| 午夜国产精品一区| 亚洲日本电影在线| 久久蜜桃av一区精品变态类天堂| 欧美视频一区在线观看| 成人avav在线| 久草在线在线精品观看| 亚洲成人免费在线观看| 亚洲欧美成aⅴ人在线观看| 久久人人超碰精品| 久久综合狠狠综合| 欧美日韩精品专区| 色婷婷综合久久久久中文一区二区| 国产成人午夜精品影院观看视频| 日韩精品电影一区亚洲| 亚洲国产日韩一级| 亚洲免费观看高清| 国产精品久久久久久久浪潮网站| 亚洲精品一区二区三区香蕉| 欧美一区二区三区在线看| 欧美午夜片在线看| 欧洲一区二区三区在线| 成人精品免费网站| 国产黄色精品视频| 国产精品白丝jk白祙喷水网站| 久久99国内精品| 久久99国内精品| 狠狠色丁香婷婷综合久久片| 久久精品99国产精品日本| 日本中文在线一区| 秋霞电影网一区二区| 免费成人在线影院| 精品一区二区三区日韩| 国产乱码精品一区二区三区忘忧草 | 欧美网站大全在线观看| 一本高清dvd不卡在线观看| 91免费观看国产| 欧美在线看片a免费观看| 色综合久久久久| 欧美在线观看一区| 日韩一区二区三区观看| 久久精品亚洲精品国产欧美| 久久久久久99精品| 国产精品成人在线观看| 亚洲精品国产第一综合99久久| 亚洲成人av一区| 精品一区二区免费| 国产99久久久久| 欧美伊人精品成人久久综合97 | 免费观看在线色综合| 国产乱人伦偷精品视频不卡| av电影天堂一区二区在线观看| 色国产综合视频| 日韩一区二区三区四区| 国产欧美日韩精品一区| 亚洲精品国产视频| 裸体歌舞表演一区二区| 成人精品一区二区三区四区| 在线看日本不卡| 欧美大度的电影原声| 最新日韩在线视频| 奇米精品一区二区三区在线观看| 精品在线一区二区三区| 91麻豆蜜桃一区二区三区| 欧美人与z0zoxxxx视频| 久久久精品综合| 亚瑟在线精品视频| 成人小视频免费观看| 欧美伦理影视网| 国产精品久久看| 久久精品久久99精品久久| 91香蕉国产在线观看软件| 精品电影一区二区三区| 一区二区三区四区不卡在线| 精品亚洲成a人在线观看 | 久久先锋影音av鲁色资源网| 一区二区三区精品视频|