亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
精品粉嫩aⅴ一区二区三区四区| 97久久精品人人做人人爽50路 | 日精品一区二区三区| 中文字幕在线不卡| 18欧美乱大交hd1984| 伊人婷婷欧美激情| 丝袜a∨在线一区二区三区不卡| 一级做a爱片久久| 三级欧美韩日大片在线看| 蜜桃av噜噜一区| 成人av在线影院| 欧美高清一级片在线| 欧美精品一区二区久久婷婷| 欧美国产97人人爽人人喊| 一区二区三区久久久| 日本最新不卡在线| 成人午夜碰碰视频| 欧美日韩国产一区二区三区地区| 久久先锋影音av| 曰韩精品一区二区| 国产精品1区二区.| 欧美精品乱码久久久久久| 欧美韩国日本综合| 另类综合日韩欧美亚洲| 91在线高清观看| 久久久国际精品| 久久精品国产精品亚洲红杏| 色成人在线视频| 综合在线观看色| 成人国产精品视频| 国产色一区二区| 国内欧美视频一区二区| 88在线观看91蜜桃国自产| 一区二区不卡在线播放| 成人动漫视频在线| 中文字幕不卡三区| 成人h精品动漫一区二区三区| 精品理论电影在线观看| 激情综合网天天干| 2020国产精品自拍| 国产一区二区三区免费看| 精品国产乱子伦一区| 国产高清不卡一区| 中文字幕在线观看一区二区| 成人av网址在线观看| 亚洲精品久久7777| 91精品国产麻豆| 久久国产综合精品| 国产精品久久久久久久久果冻传媒 | 激情亚洲综合在线| 欧美激情一区二区三区全黄| 色哟哟国产精品| 青草国产精品久久久久久| 欧美刺激脚交jootjob| 国产成人在线视频网站| 亚洲美女少妇撒尿| 日韩精品一区二区三区中文不卡 | 日韩视频免费观看高清完整版| 麻豆精品在线播放| 国产精品午夜久久| 欧美日韩综合不卡| 成人午夜激情视频| 亚洲国产一区二区在线播放| 日韩精品专区在线| 欧美自拍偷拍一区| 成人精品在线视频观看| 日韩综合在线视频| 亚洲黄色性网站| 国产精品久久久久久久久搜平片| 9191精品国产综合久久久久久| 成人18视频日本| 国内精品久久久久影院薰衣草| 亚洲欧美一区二区三区国产精品 | 99精品国产91久久久久久| 视频一区二区不卡| 夜夜嗨av一区二区三区中文字幕| 亚洲精品在线三区| 777午夜精品视频在线播放| 91传媒视频在线播放| 国产成人精品免费看| 国产在线精品一区在线观看麻豆| 国产麻豆视频一区| 午夜精品久久久久久久久久| 亚洲天堂网中文字| 亚洲免费av高清| 一区二区三区日韩欧美| 国产精品不卡在线| 亚洲欧洲精品一区二区三区| 国产精品久久网站| ●精品国产综合乱码久久久久| 国产精品每日更新在线播放网址| 国产女人18毛片水真多成人如厕| 精品欧美一区二区久久| 欧美精品一区二区蜜臀亚洲| 国产亚洲精品aa午夜观看| 国产精品视频麻豆| 亚洲一区二区在线观看视频| 亚洲一线二线三线久久久| 日本视频在线一区| 福利电影一区二区| 欧美亚洲综合另类| 久久久久国产精品免费免费搜索| 久久久99久久精品欧美| 亚洲美女在线国产| 理论电影国产精品| 色狠狠综合天天综合综合| 欧美三区免费完整视频在线观看| 日韩欧美123| 亚洲美女少妇撒尿| 国产成人免费xxxxxxxx| 欧美艳星brazzers| 中文字幕中文字幕中文字幕亚洲无线| 亚洲午夜视频在线| 国产**成人网毛片九色 | 日韩精品一二三四| 色综合色综合色综合色综合色综合| 在线成人免费视频| 国产精品第五页| 国产98色在线|日韩| 欧美一区二区三区的| 亚洲影院在线观看| 色综合咪咪久久| 国产精品超碰97尤物18| 国产剧情在线观看一区二区| 欧美一区二区三区视频免费| 亚洲伦理在线精品| 99在线精品观看| 国产精品日韩精品欧美在线| 国内精品国产三级国产a久久| 日韩亚洲欧美成人一区| 三级久久三级久久久| 91精品国产福利| 韩国一区二区三区| 欧美激情一区二区三区在线| 成人综合激情网| 欧美国产1区2区| proumb性欧美在线观看| 亚洲卡通欧美制服中文| 91免费国产在线观看| 一二三四区精品视频| 91精品婷婷国产综合久久性色| 亚洲.国产.中文慕字在线| 欧美精品一级二级三级| 日本va欧美va精品发布| 337p粉嫩大胆噜噜噜噜噜91av| 美女免费视频一区二区| 国产精品美女一区二区三区 | 久久精品国产亚洲高清剧情介绍| 欧美日韩成人一区二区| 麻豆传媒一区二区三区| 国产精品超碰97尤物18| 91麻豆精品91久久久久同性| 国内精品嫩模私拍在线| 夜夜精品浪潮av一区二区三区| 欧美日韩精品福利| 成人av在线电影| 青青草一区二区三区| 国产精品妹子av| 久久亚洲精品小早川怜子| 色美美综合视频| 毛片不卡一区二区| 亚洲精品成a人| 中文字幕国产一区二区| 欧美一区二区三区日韩| 欧美日韩一卡二卡| 色综合婷婷久久| 精品日韩av一区二区| 欧美日本韩国一区| 99久久婷婷国产综合精品| 秋霞国产午夜精品免费视频| 夜夜爽夜夜爽精品视频| 亚洲精品国产一区二区三区四区在线| 久久亚洲综合色| 日韩欧美国产综合一区| 日韩一区二区三区高清免费看看 | 中文字幕av资源一区| 国产亚洲一区二区三区四区 | 国产电影一区二区三区| 久久精品国产一区二区三区免费看 | 日韩一区二区三区视频在线观看| 中文字幕成人av| 欧美一区二区三区啪啪| 91黄色激情网站| 欧美日韩高清在线播放| 色婷婷av一区二区三区软件| 久久99精品久久久久久久久久久久| 亚洲人成7777| 亚洲最新视频在线观看| 国产欧美精品一区二区色综合| 日韩欧美国产麻豆| 91精品国产91久久久久久最新毛片 | 一二三区精品福利视频| 亚洲国产一区二区视频| 激情五月婷婷综合网| 91免费观看视频| 欧美精品tushy高清| 国产亚洲一区字幕| 亚洲欧洲日韩av| 亚洲成人先锋电影| 99精品国产99久久久久久白柏|