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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lexictour.m

?? The Source of Genetic Programming developed in Matlab
?? M
字號:
function [indid,indindex,popexpected,popnormfitness]=lexictour(pop,params,state,nsample,toavoid)
%LEXICTOUR    Sampling of GPLAB individuals by lexicographic parsimony tournament.
%   LEXICTOUR(POP,PARAMS,STATE,NSAMPLE,TOAVOID) returns NSAMPLE ids of
%   individuals chosen from POP using the lexicographic parsimony
%   tournament method (Luke & Panait 2002). The ids in TOAVOID are
%   not chosen.
%
%   [IDS,INDICES]=LEXICTOUR(POP,PARAMS,STATE,NSAMPLE,TOAVOID) also
%   returns the indices in POP of the chosen individuals.
%
%   Input arguments:
%      POPULATION - the current population of the algorithm (array)
%      PARAMS - the running parameters of the algorithm (struct)
%      STATE - the current state of the algorithm (struct)
%      NSAMPLE - the number of individuals to draw (integer)
%      TOAVOID - the ids of the individuals to avoid drawing (1xN matrix)
%   Output arguments:
%      IDS - the ids of the individuals chosen (1xN matrix)
%      INDICES - the indices of the individuals chosen (1xN matrix)
%
%   Note:
%      The two last output arguments are not referred because they are
%      not used in this function. They are present only for compatibility
%      with the other functions for sampling individuals.
%
%   See also ROULETTE, SUS, TOURNAMENT, DOUBLETOUR, TOURBEST, SAMPLING
%
%   References:
%   Luke, S. and Panait, L. Lexicographic Parsimony Pressure. GECCO (2002).
%
%   Copyright (C) 2003-2007 Sara Silva (sara@dei.uc.pt)
%   This file is part of the GPLAB Toolbox

% we are not calculating these, but they are output arguments:
popexpected=[];
popnormfitness=[];

% tournament selection:
% first get tournamentsize individuals (randomly) from the population;
% (we can use the roulette procedure for this, since we may want to avoid some indices -
% - rand would turn out difficult to avoid indices)
% then choose the one with best fitness.

popids=[pop.id];
state.popexpected=ones(1,state.popsize);

% roll the roulette to draw nsample*tournamentsize individuals:
%[tids,tindices]=roulette(pop,params,state,nsample*state.tournamentsize,toavoid);
%example: tids=[80 50 50 35 40 60 10 10]; tindices=[3 1 2 4 5 7 6 6];

% same as lines 46-48, but roll the roulette several times drawing fewer
% individuals each time, to minimize memory problems: 
totalsample=nsample*state.tournamentsize;
p=min([params.drawperspin totalsample]); % (p = how many to draw per spin)
for i=1:p:totalsample
    partialsample=min([p totalsample-i+1]);
    [tids(i:i+partialsample-1),tindices(i:i+partialsample-1)]=roulette(pop,params,state,partialsample,toavoid);
end

% shuffle:
[tids,myorder]=shuffle(tids); % shuffle randomly
tindices=orderby(tindices,myorder); % shuffle exactly like tids, with the same order

% get the fitnesses of these individuals:
tfits=state.popadjustedfitness(tindices);
% (use adjusted fitness because this is part of the selection process)
%example: tfits=[0.9 0.9 0.9 0.5 0.2 0.9 0.3 0.3];

% each row of tgroup* is a set of individuals (a single tournament) to choose the best from:
tgroupinds=reshape(tindices,state.tournamentsize,nsample)';
tgroupfits=reshape(tfits,state.tournamentsize,nsample)';
%(tournamentsize=4; nsample=2)
%example: tgroupinds=[3 1 2 4       tgroupfits=[0.9 0.9 0.9 0.5
%                     5 7 6 6];                 0.2 0.9 0.3 0.3];

% get better fitness from each row and repmat to fit the shape of tgroupfits:
if params.lowerisbetter
   f=tgroupfits==repmat(min(tgroupfits,[],2),1,state.tournamentsize);
else
   f=tgroupfits==repmat(max(tgroupfits,[],2),1,state.tournamentsize);
end
%example: f=[1 1 1 0
%            0 1 0 0]

% (this tournament also selects for parsimony, so after selecting the best fitness
%  values, check tree sizes and select again for smaller trees)

funique=find(sum(f,2)==1); % (rows where size doesn't matter)
%example: funique=2
ftosize=f;
ftosize(funique,:)=0; % (only the non-unique are kept - the rest is set to zero)
%example: ftosize=[1 1 1 0
%                  0 0 0 0]
indindextosize=unique(tgroupinds(find(ftosize==1)))'; % (indices of the individuals to measure)
%example: indindextosize=[3 1 2]
fsizes=zeros(size(f));
for i=1:length(indindextosize)
   if isempty(pop(indindextosize(i)).nodes)
      pop(indindextosize(i)).nodes=nodes(pop(indindextosize(i)).tree);
   end
   fsizes(find(tgroupinds==indindextosize(i)))=1/pop(indindextosize(i)).nodes;
end
%example: fsizes=[1/89 1/45 1/45    0
%                    0    0    0    0]
fsizes(funique,:)=f(funique,:); % (add the rows that were previously set to zero)
%example: fsizes=[1/89 1/45 1/45    0
%                    0    1    0    0]
f=fsizes==repmat(max(fsizes,[],2),1,state.tournamentsize);
% (we need to use max to retain the marks (1) instead of the non-marks (0),
% and that is why we used nodes instead of 1/nodes)
%example: f=[0 1 1 0
%            0 1 0 0]

% now proceed like in the function "findfirstindex" to get the first
% ocurrence of the best value in each row:
% (choosing the first is in fact choosing randomly)

cs=cumsum(cumsum(f,2),2);
%example: cs=[1 3 6 9
%             0 1 2 3]
indindex=tgroupinds(find(cs==1))';
indid=popids(indindex);
%example: indindex=[3 7]; indid=[80 60]

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级在线视频| 国产一区二三区| 国产亚洲精品7777| 久久久久久久久久久久久夜| 精品福利av导航| 欧美精品一区二| 久久精子c满五个校花| 26uuu国产电影一区二区| 日韩一区二区三区在线视频| 日韩一二三区不卡| 亚洲精品一区二区三区99| 91精品欧美综合在线观看最新| 欧美日韩国产一区二区三区地区| 欧美一区二区网站| 日韩一二三区不卡| 懂色av一区二区三区免费观看| 99国产精品国产精品久久| 99久久久免费精品国产一区二区| 91免费看片在线观看| 91成人免费在线视频| 欧美高清一级片在线| 精品久久久影院| 18欧美乱大交hd1984| 亚洲成a人片在线观看中文| 日韩不卡手机在线v区| 国产精品一区二区久激情瑜伽| 91小宝寻花一区二区三区| 欧美日韩国产一区| 欧美高清在线一区二区| 亚洲与欧洲av电影| 狠狠色综合色综合网络| 91网站黄www| 日韩精品一区二区三区在线| 国产精品久久久久久久久图文区| 亚洲一区二区五区| 国产一区二区在线看| 91麻豆福利精品推荐| 精品日韩一区二区三区免费视频| 中文字幕人成不卡一区| 亚洲.国产.中文慕字在线| 国产精品一二三区在线| 欧美日韩国产小视频在线观看| 国产精品毛片久久久久久| 国产精品一区二区在线观看不卡 | www.日本不卡| 色综合久久中文字幕综合网| 日韩视频中午一区| 亚洲手机成人高清视频| 美女网站一区二区| 在线精品视频免费播放| 国产亚洲精品福利| 奇米影视在线99精品| 日本韩国欧美在线| 国产精品久久久久久久久免费樱桃 | 国产乱码精品一区二区三区av | 懂色av一区二区三区免费观看| 成人视屏免费看| 欧美日韩高清影院| 亚洲欧美另类小说| 岛国一区二区三区| 欧美精品一区二区三区久久久| 亚洲国产aⅴ成人精品无吗| av一区二区三区在线| 久久久久国产一区二区三区四区| 婷婷综合在线观看| 欧美私人免费视频| 亚洲精品精品亚洲| 色综合久久88色综合天天| 国产精品私人自拍| 成人性生交大片免费看中文| 精品国产免费人成在线观看| 免费观看日韩电影| 欧美精品123区| 国产成人av网站| 欧美一区二区在线视频| 8x福利精品第一导航| 亚洲一区二区四区蜜桃| 日本道精品一区二区三区| 亚洲精品网站在线观看| 色综合天天做天天爱| 亚洲一区二区成人在线观看| 91成人免费在线视频| 亚洲国产aⅴ天堂久久| 欧美日韩国产欧美日美国产精品| 亚洲一区二区三区四区的| 欧美日韩精品系列| 美女视频黄久久| 久久久久久久国产精品影院| 成人免费观看男女羞羞视频| 亚洲人成网站影音先锋播放| 色美美综合视频| 午夜激情综合网| 日韩手机在线导航| 成人一道本在线| 精品国产一区二区精华| 欧美久久久久久久久中文字幕| 欧美日韩高清一区二区三区| 亚洲第一在线综合网站| 6080午夜不卡| 国产成人免费在线观看| 国产精品第13页| 911精品国产一区二区在线| 黄色资源网久久资源365| 国产精品久久免费看| 欧美日韩视频一区二区| 韩国精品在线观看| 亚洲激情图片一区| 日韩色视频在线观看| 日韩不卡一区二区| 亚洲精品免费一二三区| 色婷婷av一区二区三区软件| 91精品国产91久久久久久最新毛片| 2020国产精品| 全部av―极品视觉盛宴亚洲| 91麻豆福利精品推荐| 精品无码三级在线观看视频| 国产一区二区导航在线播放| 自拍偷拍亚洲欧美日韩| 欧美福利一区二区| 成人黄动漫网站免费app| 日韩电影免费在线| 自拍偷拍欧美激情| 日韩精品中文字幕一区| 色悠悠久久综合| 国产精品一区专区| 天天色天天爱天天射综合| 国产欧美日韩在线看| 欧美一区二区视频网站| 蜜臀国产一区二区三区在线播放 | 精品日产卡一卡二卡麻豆| 国产一区二区三区黄视频 | 日韩一区二区视频| 色噜噜狠狠色综合中国| 色狠狠色噜噜噜综合网| 国产美女主播视频一区| 日韩精品国产欧美| 亚洲精品自拍动漫在线| 国产欧美在线观看一区| 日韩精品一区二区在线| 欧美精品 日韩| 欧美日本一道本| 在线观看av一区| 97超碰欧美中文字幕| av在线不卡网| 99久久精品费精品国产一区二区| 激情国产一区二区| 精品一区二区av| 久久国产精品99久久人人澡| 五月天一区二区三区| 岛国一区二区三区| 蜜桃av一区二区在线观看| 欧美色中文字幕| 国内精品伊人久久久久av影院 | 欧美一区二区视频在线观看| 91麻豆国产福利精品| 91在线观看高清| av激情成人网| 色哟哟国产精品| 欧美在线免费视屏| 欧美日韩高清在线| 精品少妇一区二区三区在线播放 | 欧美日韩免费不卡视频一区二区三区 | 成人一级视频在线观看| 国产成人av电影免费在线观看| 国产成人综合网| 成人激情综合网站| 91国模大尺度私拍在线视频| 欧美视频一区二区三区| 在线电影国产精品| 精品国产乱码久久久久久浪潮| 久久久一区二区三区捆绑**| 国产精品狼人久久影院观看方式| 亚洲欧美视频在线观看| 天天综合网 天天综合色| 蜜桃视频免费观看一区| 国产福利精品导航| 色婷婷综合中文久久一本| 欧美精品aⅴ在线视频| www激情久久| 18涩涩午夜精品.www| 日韩福利电影在线| 国产精品一区二区x88av| 91精品福利视频| 欧美成人精品二区三区99精品| 国产精品久久一卡二卡| 亚洲五码中文字幕| 国产成人精品影视| 精品婷婷伊人一区三区三| 精品剧情在线观看| 亚洲精品国产一区二区三区四区在线| 日欧美一区二区| 成人一区二区三区视频在线观看| 欧美调教femdomvk| 国产日产欧产精品推荐色| 一片黄亚洲嫩模| 国产乱淫av一区二区三区 | 亚洲一区二区av在线| 精品亚洲porn| 欧美视频精品在线| 国产精品久线在线观看|