-
已知一個LTI系統的差分方程為:
y[n]-1.143*y[n-1]+0.4128*y[n-2]=0.0675*x[n]+0.1349*x[n-1]+0.0675*x[n-2]
初始條件y(-1)=1,y(-2)=2,輸入x(n)=u(n),計算系統的零輸入響應
標簽:
0.0675
0.4128
0.1349
1.143
上傳時間:
2013-11-27
上傳用戶:zhengzg
-
求圖的頂點連通度算法。方法就是先對源和匯做枚舉,之后對每個枚舉情況,把除去源匯兩點的其余所有頂點看成是容量限制為1的點,求網絡的最大流,就是此點對的頂點連通度,之后對枚舉的所有點對找連通度最小的當成圖的連通度。
帶有頂點容量限制的最大流方法:將帶容量限制的頂點u拆成兩個點u 和u*,原頂點u的入邊為u 的入邊,原頂點u的出邊為u*的出邊,之后在u 和u*之間連接雙向邊,邊的容量為頂點的容量限制。
標簽:
算法
上傳時間:
2013-12-21
上傳用戶:515414293
-
代入法的啟發示搜索
我的代碼實現是:按照自然語言各字母出現頻率的大小從高到低(已經有人作國統計分析了)先生成一張字母出現頻率統計表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z)
,再對密文字母計算頻率,并按頻率從高到低生成一張輸入密文字母的統計表(B),通過兩張表的對應關系,不斷用A中的字母去替換B中的字母,搜索不成功時就回退,在這里回朔是一個關鍵。
標簽:
字母
頻率
搜索
代碼
上傳時間:
2015-10-24
上傳用戶:wanqunsheng
-
使用說明:請您先正確設置數據庫及JDBC驅動。
參考:
http://blog.raofeng.com/love/kiss/archives/2006/16.html
http://blog.raofeng.com/love/kiss/archives/2006/13.html
http://dev.mysql.com/downloads/connector/j/3.1.html下載JDBC驅動
先新建一數據庫(默認名為jspmo)建立數據庫及表格的命令都在sql.txt內,可以直接復制到數據庫里運行。
默認管理員名為: admin ,密碼為:jspmo.com
請修改config.jsp中的name(管理員名),password(管理員密碼),sitename(留言本標題),copyright(版權信息).
以及conn.jsp中的host(數據庫服務器主機),user(數據庫用戶名),pw(數據庫密碼),db(數據庫名),tab(數據庫表名)。
標簽:
http
blog
archives
raofeng
上傳時間:
2015-10-25
上傳用戶:894898248
-
%BIQPBOX Bisection reflective line search for sqpbox
% [nx,nsig,alpha] = BIQPBOX(s,c,strg,x,y,sigma,l,u,...
% oval,po,normg,DS,mtxmpy,data,H)
% returns the new feasible point nx, the corresponding sign vector nsig,
% and the step size of the unreflected step, alpha.
% Copyright (c) 1990-98 by The MathWorks, Inc.
% $Revision: 1.2 $ $Date:
標簽:
BIQPBOX
reflective
Bisection
search
上傳時間:
2013-12-17
上傳用戶:sk5201314
-
* first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo)
over it u add this
Code:
USER_MSG_INTERCEPT(Health)
{
BEGIN_READ(pbuf,iSize)
me.iHealth = READ_BYTE()
return USER_MSG_CALL(Health)
}
* then we search for int HookUserMsg (char *szMsgName, pfnUserMsgHook pfn)
and add this
Code:
REDIRECT_MESSAGE( Health )
*k now we have the health registered and can read it out i stop this hear know cuz i must thanks panzer and w00t.nl that they helped me with it first time!
*ok now we go to int HUD_Redraw (float x, int y) and packing this draw code in it
Code:
標簽:
USER_MSG_INTERCEPT
TeamInfo
client
search
上傳時間:
2016-01-22
上傳用戶:ynzfm
-
進銷存管理系統(JSP版)
【系統配置】
先將此目錄下的\WEB-INF\classes\JXC 為JavaBean
本系統這里使用的ACCESS數據數據庫。
數據源名稱:JXC, (也可以改變j\WEB-INF\classes\JXC\db.properties的文件)。
數據庫為: jxcDB.mdb
編寫環境: win2000+j2sdk1.4.1_01+tomcat4.1.2.7
標簽:
WEB-INFclassesJXC
JavaBean
ACCESS
JSP
上傳時間:
2014-01-03
上傳用戶:努力努力再努力
-
%radon transform
clear all
%
N=800
n=1:N
fs=200
t=n/fs
x1=exp(j*2*pi*(5*t+0.5*5*t.^2))
x2=exp(j*2*pi*(5*t+0.5*15*t.^2))
x=x1+x2
%N=length(x)
% ambifunb(x )
%*****************************************RAT
naf=ambifunb(x)
htl(abs(naf))
% [wh,rho,theta]=htl(abs(naf))
colormap([0,0,0])
% xlabel( 極半徑 )
% ylabel( 角度 )
%**************************************%找出峰值點的坐標,計算初始頻率和調頻斜率(正確)
%找出峰值點的坐標
b=max(max(wh))
[u,a]=find(wh>=0.8*b)
標簽:
transform
radon
clear
fs
上傳時間:
2014-10-27
上傳用戶:Yukiseop
-
System.out.print(s) System.out.println(t)
System.out.print(u) System.out.println(v)
System.out.print(a) System.out.print(b) System.out.print(c) System.out.println(d) x=0x5f20 y=0x5f35 z=0xffff System.out.print(x) System.out.print(y) System.out.println(z)
標簽:
System
out
println
print
上傳時間:
2016-07-01
上傳用戶:日光微瀾
-
function [U,center,result,w,obj_fcn]= fenlei(data)
[data_n,in_n] = size(data)
m= 2 % Exponent for U
max_iter = 100 % Max. iteration
min_impro =1e-5 % Min. improvement
c=3
[center, U, obj_fcn] = fcm(data, c)
for i=1:max_iter
if F(U)>0.98
break
else
w_new=eye(in_n,in_n)
center1=sum(center)/c
a=center1(1)./center1
deta=center-center1(ones(c,1),:)
w=sqrt(sum(deta.^2)).*a
for j=1:in_n
w_new(j,j)=w(j)
end
data1=data*w_new
[center, U, obj_fcn] = fcm(data1, c)
center=center./w(ones(c,1),:)
obj_fcn=obj_fcn/sum(w.^2)
end
end
display(i)
result=zeros(1,data_n) U_=max(U)
for i=1:data_n
for j=1:c
if U(j,i)==U_(i)
result(i)=j continue
end
end
end
標簽:
data
function
Exponent
obj_fcn
上傳時間:
2013-12-18
上傳用戶:ynzfm