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

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

?? designhbf.m

?? 高階sigma-delta調(diào)制器設(shè)計(jì)matlab工具包, 半波帶濾波器設(shè)計(jì)工具包
?? M
字號(hào):
function [f1_saved,f2_saved,info]=designHBF(fp,delta,debug)%function [f1,f2,info]=designHBF(fp=0.2,delta=1e-5,debug=0)%Design a half-band filter which can be realized without general multipliers.%The filter is a composition of a prototype and sub- filter.%Input% fp	The normalized cutoff frequency of the filter. Due to the%	symmetry imposed by a HBF, the stopband begins at 0.5-fp.% delta	The absolute value of the deviation of the frequency response from %	the ideal values of 1 in the passband and  0 in the stopband.%%Output% f1,f2	The coefficients of the prototype and sub-filters%	and their canonical-signed digit (csd) representation.% info	A vector containing the following data (only set when debug=1):%	complexity	The number of additions per output sample.%	n1,n2		The length of the f1 and f2 vectors.%	sbr		The achieved stob-band attenuation (dB).%	phi		The scaling factor for the F2 filter.% To Do: Clean up the code a bit more, esp. wrt the use of the struct. arrays.%	 Use the phi variable to cut down on the number of adders in F2.%	 Apply a simulated annealing/genetic optimization alg instead%	 of the ad hoc one I have now.%Handle the input argumentsparameters = ['fp   ';'delta';'debug'];defaults = [ 0.2 1e-5 0];for i=1:length(defaults)    if i>nargin       eval([parameters(i,:) '=defaults(i);'])    elseif eval(['any(isnan(' parameters(i,:) ')) | isempty(' parameters(i,:) ')'])        eval([parameters(i,:) '=defaults(i);'])    endend%Try several different values for the fp1 parameter.%The best values are usually around .04%Surrender if 3 successive attempts yield progressively greater complexity.lowest_complexity = Inf;	prev_complexity = Inf;for fp1 = [.03 .035 .025 .040 .020 .045 .015 .05]    failed = 0;    [f1 zetap phi] = designF1( delta, fp1 );    if zetap == 1	% designF1 failed	failed = 1;	if debug	    fprintf(2,'designF1 failed at fp1=%f\n',fp1);	end    end    if ~failed	f2 = designF2( fp, zetap, phi );	n1 = length(f1);	n2 = length(f2);	if n2 == 0		% designF2 failed	    failed = 1;	    if debug		fprintf(2,'designF2 failed when zetap=%f, phi=%f\n',zetap,phi);	    end	end    end    if ~failed	% complexity(+ performance)  = the number of two-input adders (+ sbr)	complexity =  size([f1.csd],2) + (2*n1-1)*(n2+size([f2.csd],2)-1);	if debug	    msg = sprintf('%d adders: n1=%d, n2=%d, (fp1=%.2f, zetap=%.3f, phi=%4.2f)', ...		complexity, n1, n2, fp1, zetap, phi );	else	    msg = '';	end	[fresp pbr sbr] = frespHBF([], f1, f2, phi, fp, msg);	if pbr <= delta & sbr <= delta          	    complexity = complexity + sbr;	    if complexity < prev_complexity		worse = 0;		if complexity < lowest_complexity 		    lowest_complexity = complexity;		    f1_saved = f1;	f2_saved = f2;		    phi_saved = phi;		    if debug			fprintf( 1, '%s\n', msg )		    end		end	    else		worse = worse + 1;		if worse > 2		    break;		end	    end	    prev_complexity = complexity;	end	    % if pbr <= delta    end	    end	    % for fp1if isinf(lowest_complexity)    fprintf(1,'%s: Unable to meet the design requirements.\n', mfilename);elseif debug     complexity = floor(lowest_complexity);    msg = sprintf( 'Final Design: %d adders', complexity);    [junk pbr sbr] = frespHBF([], f1_saved, f2_saved, phi_saved, fp, msg);    n1 = length(f1_saved);	n2 = length(f2_saved);    fprintf(1,'%s (%d,%d,%.0fdB)\n', msg,n1,n2,dbv(sbr));    info = [ complexity n1 n2 dbv(sbr) phi_saved ];endreturnfunction [f1_saved,zetap,phi] = designF1(delta, fp1)% [f1 zetap phi] = designF1(delta, fp1)		Design the F1 sub-filter% of a Saramaki halfband filter. This function is called by designHBF.m.%% f1    A structure array containing the F1 filter coefficents and%       Their CSD representation.% phi	The scaling factor for the F2 filter (imbedded in the f1 coeffs.)passband = exp(4*pi*j*linspace(0,fp1));ok = 0;for n1 = 1:2:7 	% Odd values only    if n1 == 1	h = [0.5 0.5];    else	h = firpm(2*n1-1,[0 4*fp1 1 1],[1 1 0 0]);	if ~(abs(sum(h)-1) < 1e-3 )		% remez bug! Use firls instead	    h = firls(2*n1-1,[0 4*fp1 1-1e-6 1],[1 1 0 0]);	end    end    fresp = abs( polyval(h,passband) );    if max( abs(fresp-1) ) <= delta	ok = 1;	break    endendif ~ok    zetap = 1;	% Use this as an indication that the function failed.    returnend% Transform h(n) to a chebyshev polynomial f1(n)% Sum(f1(i)*cos(w)^n)|i=1:n1 + Sum(h(n1+i))*cos(n*w))|i=1:n1, n = 2*i-1;w = pi*rand(1,n1);cos_w = cos(w);A = zeros(n1,length(w));B = zeros(1,n1);for i = 1:n1    n = 2*i-1;    A(i,:) = cos_w .^ n;    B = B + h(n1+i)* cos(n*w);endf1 = B/A;% Matlab Ver. 5 change:phivecb = [];% Optimize the quantized version of f1 to maximize the stopband width % ( = acos(zetap) )zetap = 1;testPoints = [0 logspace(-2,0,128)] - 1;for nsd = 3:8    f1a = f1'; f1b = f1'; 		% First try the unperturbed filter.    for phia = 1 ./ [1 f1]	phia = phia / 2^nextpow2(phia); % keep phi in (0.5,1]	% Try a bunch of coefficients in the current neighborhood,	% shrinking the neighborhood once 10 successive trial values show no	% improvement.  If 2 successive shrinkages do no good, try a higher nsd.	count = 0;	nohelp = 0;	neighborhood = .05;	while neighborhood > 1e-5	    phivec = phia .^ [1:2:2*n1-1]';% Matlab Ver. 5 change:	    if isempty(phivecb); phivecb = phivec; end	    f1q = bquantize( f1a.*phivec, nsd );	    F1 = evalF1( [f1q.val], testPoints, phia );	    fi = find( abs(F1) > delta ); 	    zeta = -testPoints( max( fi(1)-1, 1 ) );	    %fprintf(2,'nsd=%d, nbhd= %f, count=%d, zeta = %f, phia=%f\n', ...	    %  nsd, neighborhood, count, zeta, phia );	    if zeta < zetap		count = 0;		nohelp = 0;		zetap = zeta;		f1b = [f1q.val]';		f1_saved = f1q;		phi = phia;		phivecb = phivec;	    else		count = count + 1;	    end	    if count > 10		count = 0;		neighborhood = neighborhood/2;		nohelp = nohelp +1;		if nohelp > 2		    break;		end	    end	    f1a = f1b./phivecb + neighborhood*(rand(size(f1b))-0.5);	    phia = phia + neighborhood*(rand(1,1)-0.5);	end	if zetap < 1	% Found a filter with adequate attn.	    break;	end    end			% for phia ...    if zetap < 1	% Found a filter with adequate attn.	break;    endendreturnfunction f2 = designF2(fp,zetap,phi)% f2 = designF2(fp,zetap,phi)		Design the F2 sub-filter% of a Saramaki halfband filter.  This function is called by designHBF.m.% subfilter design:%   1 - delta2' < |F2/phi| < 1 	for f in [0 fp];%  -1 < |F2/phi| < -1 + delta2'	for f in [0.5-fp, 0.5];%   1-delta2' = (1-delta2)/(1+delta2)delta2 = (1-zetap)/(1+zetap);%delta2p = 1 - (1-delta2)/(1+delta2);% determine the minimum order required by the filterpassband = exp(j*linspace(0,4*pi*fp));for nsub = 3:2:17    h2 = firpm(nsub,[0 4*fp 1 1], [1 1 0 0]);    mag = abs( polyval(h2,passband) );    if max(abs(mag-1)) < delta2;	break;    endendn2min = (nsub+1)/2;% Search all n2,nsd pairs, in order of the product n2*(nsd+1)% allowing fp to be a variable?success = 0;nsdmin = 3;	nsdmax = 6;for product = (nsdmin+1)*n2min:(nsdmax+1)*n2min    for nsd = nsdmin:nsdmax    	n2 = product/(nsd+1);	if floor(n2) ~= n2	% Only take integer n2,nsd pairs	    break	end	nsub = 2*n2-1;	% Could try a bunch of fp values	%fprintf(2,'designF2: Trying (n2,nsd2,fp)=(%2d,%2d,%6.4f)\n',n2,nsd,fp);	h2 = firpm(nsub,[0 4*fp 1 1], [1 1 0 0]);	h2 =  h2/(phi*(1+delta2));		% Adjust the coefficients.	f2 = bquantize( h2(n2+1:nsub+1), nsd );	h2 = (1+delta2)*phi*[f2(n2:-1:1).val f2.val];	mag = abs( polyval(h2,passband) );	if max(abs(mag-1)) < delta2;	    success =1;	    break;	end    end    if success	break;    endendif ~success    f2 = [];     q2 = [];endreturn

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产一区二区三区av性色| 777色狠狠一区二区三区| 亚洲国产成人91porn| 久久综合色婷婷| 欧美日韩一区二区不卡| 成人免费毛片嘿嘿连载视频| 日韩电影网1区2区| 一区二区高清在线| 国产精品妹子av| 精品国产一区二区三区久久影院 | 一区二区三区在线视频免费| 精品国产污污免费网站入口 | 成人黄页毛片网站| 久久99热这里只有精品| 午夜精品久久久久久| 亚洲丝袜另类动漫二区| 中文子幕无线码一区tr| 精品国产乱码久久久久久久| 91亚洲午夜精品久久久久久| 成人美女视频在线看| 国产在线精品一区二区不卡了| 欧美a一区二区| 丝袜美腿亚洲综合| 天堂av在线一区| 视频一区二区三区中文字幕| 亚洲妇女屁股眼交7| 一区二区三区在线免费视频| 亚洲手机成人高清视频| 中文字幕在线不卡一区二区三区| 久久久久97国产精华液好用吗| 日韩精品一区二区三区四区| 日韩欧美一二三区| 欧美一级一级性生活免费录像| 欧美日韩视频不卡| 欧美喷潮久久久xxxxx| 欧美老人xxxx18| 538在线一区二区精品国产| 亚洲婷婷在线视频| 一区二区三区日韩精品视频| 亚洲欧美色图小说| 亚洲激情在线激情| 亚洲成在线观看| 午夜视频一区二区三区| 日韩精品午夜视频| 美女任你摸久久| 国内精品免费**视频| 国产成人精品一区二区三区四区| 国产不卡在线一区| av在线一区二区三区| 一本色道久久综合狠狠躁的推荐| 色偷偷一区二区三区| 欧美午夜一区二区| 3atv在线一区二区三区| 日韩欧美在线综合网| 久久亚洲精品国产精品紫薇| 中文字幕国产一区| 亚洲精品一二三| 日韩激情av在线| 国产在线视频不卡二| 成人网在线免费视频| 在线观看日韩电影| 日韩欧美一区二区三区在线| 久久久亚洲综合| 亚洲欧美日韩成人高清在线一区| 午夜精品爽啪视频| 久久69国产一区二区蜜臀| 大美女一区二区三区| 91精品福利视频| 日韩免费高清视频| 最新国产精品久久精品| 午夜av区久久| 韩国精品主播一区二区在线观看 | 日韩一区在线播放| 一区二区欧美国产| 久久99热国产| 91老师国产黑色丝袜在线| 欧美喷潮久久久xxxxx| 久久亚洲二区三区| 亚洲黄色免费电影| 久久99精品久久久久久国产越南| 99在线精品观看| 日韩精品一区二区三区中文不卡| 中文字幕一区二区三区在线播放 | 成人免费看的视频| 欧美在线你懂的| 久久欧美中文字幕| 午夜精品福利久久久| 国产suv精品一区二区883| 欧美怡红院视频| 26uuu色噜噜精品一区二区| 亚洲精品视频观看| 国产在线一区二区综合免费视频| 日本黄色一区二区| 久久久国产一区二区三区四区小说| 亚洲精品国产品国语在线app| 精品一区二区三区av| 在线观看免费成人| 国产喷白浆一区二区三区| 午夜不卡av在线| 91香蕉视频在线| 国产午夜久久久久| 美女网站在线免费欧美精品| 色噜噜夜夜夜综合网| 国产欧美精品一区aⅴ影院 | 中文字幕高清一区| 捆绑紧缚一区二区三区视频| 欧美日韩一区二区三区四区五区| 中文字幕一区在线| 成人免费黄色大片| 亚洲精品一区二区精华| 日韩成人免费电影| 91成人国产精品| 亚洲手机成人高清视频| 国产不卡视频在线播放| 精品88久久久久88久久久| 天天综合日日夜夜精品| 欧洲人成人精品| 亚洲少妇最新在线视频| 懂色av噜噜一区二区三区av| 亚洲精品一区二区三区福利 | 色视频一区二区| 亚洲图片你懂的| zzijzzij亚洲日本少妇熟睡| 国产日本亚洲高清| 国产精品123区| 久久久久久久久久久黄色 | 色婷婷亚洲精品| 1区2区3区欧美| 91尤物视频在线观看| 国产精品久久精品日日| 国产99久久精品| 欧美国产国产综合| av中文字幕一区| 亚洲女同ⅹxx女同tv| www.成人在线| 亚洲图片你懂的| 91久久精品国产91性色tv| 亚洲美女视频一区| 欧美在线免费播放| 石原莉奈在线亚洲二区| 日韩欧美亚洲另类制服综合在线| 精品中文字幕一区二区| 久久综合给合久久狠狠狠97色69| 国产另类ts人妖一区二区| 欧美激情一区二区三区蜜桃视频| 成人网在线免费视频| 亚洲人精品午夜| 欧美日免费三级在线| 日韩中文字幕91| 精品日韩一区二区三区| 国产精品夜夜爽| 中文字幕在线不卡视频| 欧美性生活久久| 蜜乳av一区二区三区| 久久综合久久鬼色| 波多野结衣精品在线| 亚洲一区二区三区四区在线观看| 91精品久久久久久久久99蜜臂| 久久国产精品一区二区| 国产日韩欧美不卡| 在线视频一区二区免费| 日本视频免费一区| 中文字幕免费一区| 欧美系列在线观看| 老司机精品视频一区二区三区| 国产视频一区二区三区在线观看| 99国产精品久| 午夜激情久久久| 国产日韩欧美综合一区| 色视频一区二区| 狠狠色丁香久久婷婷综合_中| 国产精品成人一区二区艾草| 欧美三级韩国三级日本一级| 久草这里只有精品视频| 亚洲欧洲精品一区二区三区 | 精品免费视频一区二区| 成人精品免费视频| 五月婷婷欧美视频| 国产欧美一区二区精品性色| 欧美手机在线视频| 国产福利91精品| 五月婷婷综合在线| 国产精品毛片高清在线完整版| 欧美另类变人与禽xxxxx| 成人av综合在线| 精品一区二区成人精品| 亚洲精品少妇30p| 国产亚洲制服色| 欧美日韩一区二区三区视频 | 精品欧美黑人一区二区三区| 色偷偷88欧美精品久久久| 国产一区二区三区视频在线播放| 亚洲欧美视频在线观看视频| 久久夜色精品国产欧美乱极品| 欧美视频完全免费看| 国产精品亚洲午夜一区二区三区| 亚洲国产精品欧美一二99| 国产精品人人做人人爽人人添| 日韩视频一区二区| 欧美自拍偷拍一区|