?? delta.m
字號:
function[change] = delta(ct,mt,y,b)% The delta function is the non-uniform distributions used by the nonUniform% mutations. This function returns a change based on the current gen, the% max gen and the amount of possible deviation.%% function[change] = delta(ct,mt,y,b)% ct - current generation% mt - maximum generation% y - maximum amount of change, i.e. distance from parameter value to bounds% b - shape parameterr=ct/mt;if(r>1) r=.99; % disp(sprintf('max gen %d < current gen %d setting ratio = 1',mt,ct));end
change = y*(rand*(1-r))^b;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -