% [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation)
% Finds a maximum of a function of several variables.
% fmaxga solves problems of the form:
% max F(X) subject to: LB <= X <= UB
% BestPop--------最優(yōu)的群體即為最優(yōu)的染色體群
% Trace----------最佳染色體所對(duì)應(yīng)的目標(biāo)函數(shù)值
% FUN------------目標(biāo)函數(shù)
% LB-------------自變量下限
% UB-------------自變量上限
% eranum---------種群的代數(shù),取100--1000(默認(rèn)1000)
% popsize--------每一代種群的規(guī)模;此可取50--100(默認(rèn)50)
% pcross---------交叉的概率,此概率一般取0.5--0.85之間較好(默認(rèn)0.8)
% pmutation------變異的概率,該概率一般取0.05-0.2左右較好(默認(rèn)0.1)
% options--------1×2矩陣,options(1)=0二進(jìn)制編碼(默認(rèn)0),option(1)~=0十進(jìn)制編碼,option(2)設(shè)定求解精度(默認(rèn)1e-4)
計(jì)算廣義分形維數(shù)的matlab源程序。希望對(duì)大家有用!
函數(shù)形式:function [dq,rq]=fdim(q,x,Trace)
不同q值下得到不同定義的分形維,如:q=0 is Hausdorf, q=1 is Information, q=2 is Correlation, etc.具體說(shuō)明見(jiàn)程序。
基于"Trace transform"的識(shí)別2D圖像的C++源程序,
主文件是tt.cpp,
在LINUX下可以用
g++ tt.cpp -o tt -O3進(jìn)行編繹,
而且最后的結(jié)果也可以在MATLAB下顯示出來(lái),
This package presents C++ tools to the Trace transform of a 2D image, and related objects, i.e. circuses and triple features, matlab tools to visualise these entities, and tools to check newly coded functionals. This version is released with a small number of functionals only.