文件名称:codings
- 所属分类:
- 软件工程
- 资源属性:
- [Matlab] [源码]
- 上传时间:
- 2015-08-10
- 文件大小:
- 42kb
- 下载次数:
- 0次
- 提 供 者:
- sharmila*********
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
codings for layer Program 13.1 Golden Section Search for minimum of f(x)
Start with unimodal f(x) and minimum in [a,b]
Input: inline function f, interval [a,b], number of steps k
Output: approximate minimum y
function y=gss(f,a,b,k)
g=(sqrt(5)-1)/2
x1 = a+(1-g)*(b-a)
x2 = a+g*(b-a)
f1=f(x1) f2=f(x2)
for i=1:k
if f1 < f2 if f(x1) < f(x2), replace b with x2
b=x2 x2=x1 x1=a+(1-g)*(b-a)
f2=f1 f1=f(x1) single function uation
else otherwise, replace a with x1
a=x1 x1=x2 x2=a+g*(b-a)
f1=f2 f2=f(x2) single function uation
end
end
y=(a+b)/2 -codings for layer Program 13.1 Golden Section Search for minimum of f(x)
Start with unimodal f(x) and minimum in [a,b]
Input: inline function f, interval [a,b], number of steps k
Output: approximate minimum y
function y=gss(f,a,b,k)
g=(sqrt(5)-1)/2
x1 = a+(1-g)*(b-a)
x2 = a+g*(b-a)
f1=f(x1) f2=f(x2)
for i=1:k
if f1 < f2 if f(x1) < f(x2), replace b with x2
b=x2 x2=x1 x1=a+(1-g)*(b-a)
f2=f1 f1=f(x1) single function uation
else otherwise, replace a with x1
a=x1 x1=x2 x2=a+g*(b-a)
f1=f2 f2=f(x2) single function uation
end
end
y=(a+b)/2
Start with unimodal f(x) and minimum in [a,b]
Input: inline function f, interval [a,b], number of steps k
Output: approximate minimum y
function y=gss(f,a,b,k)
g=(sqrt(5)-1)/2
x1 = a+(1-g)*(b-a)
x2 = a+g*(b-a)
f1=f(x1) f2=f(x2)
for i=1:k
if f1 < f2 if f(x1) < f(x2), replace b with x2
b=x2 x2=x1 x1=a+(1-g)*(b-a)
f2=f1 f1=f(x1) single function uation
else otherwise, replace a with x1
a=x1 x1=x2 x2=a+g*(b-a)
f1=f2 f2=f(x2) single function uation
end
end
y=(a+b)/2 -codings for layer Program 13.1 Golden Section Search for minimum of f(x)
Start with unimodal f(x) and minimum in [a,b]
Input: inline function f, interval [a,b], number of steps k
Output: approximate minimum y
function y=gss(f,a,b,k)
g=(sqrt(5)-1)/2
x1 = a+(1-g)*(b-a)
x2 = a+g*(b-a)
f1=f(x1) f2=f(x2)
for i=1:k
if f1 < f2 if f(x1) < f(x2), replace b with x2
b=x2 x2=x1 x1=a+(1-g)*(b-a)
f2=f1 f1=f(x1) single function uation
else otherwise, replace a with x1
a=x1 x1=x2 x2=a+g*(b-a)
f1=f2 f2=f(x2) single function uation
end
end
y=(a+b)/2
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FLOG_tuned.m
generateModel.m
GIST.m
graphLASSO.m
ispd.m
lambdaGrid.m
modelSelection.m
performanceEvaluate.m
timeSeries.m
betaGivenOmega.m
clustering.m
dataStand.m
demo_JGSE.m
evaluateCluster.m
WiMAX.zip