热卖商品
新闻详情
查看源码: gads.rar_gaplotbestindiv.m - VerySource
来自 : www.verysource.com/code/145248
发布时间:2021-03-24
functionstate=gaplotbestindiv(options,state,flag) %GAPLOTBESTINDIVPlotsthebestindividual. %STATE=GAPLOTBESTINDIV(OPTIONS,STATE,FLAG)plotsthebest %individual\'sgenomeasahistogram,withthenumberofbins %inthehistogramequaltothelengthofthegenome. %Example: %CreateanoptionsstructurethatusesGAPLOTBESTINDIV %astheplotfunction %options=gaoptimset(\'PlotFcns\',@gaplotbestindiv); %Copyright2004TheMathWorks,Inc. %$Revision:1.11.4.1$$Date:2004/04/0403:24:24$ GenomeLength=size(state.Population,2); if(strcmp(flag,\'init\')) title(\'CurrentBestIndividual\') xlabel([\'Numberofvariables(\',num2str(GenomeLength),\')\']); ylabel(\'Currentbestindividual\'); [unused,i]=min(state.Score); h=bar(double(state.Population(i,:))); set(h,\'edgec\',\'none\') set(gca,\'xlim\',[0,1+GenomeLength])
2014年10月20日function state = gaplotbestindiv(options,state,flag) %GAPLOTBESTINDIV Plots the best individual. % STATE = GAPLOTBESTINDIV(OPTIONS,STATE,FLA...查看源码: gads.rar
2014年10月20日function state = gaplotbestindiv(options,state,flag) %GAPLOTBESTINDIV Plots the best individual. % STATE = GAPLOTBESTINDIV(OPTIONS,STATE,FLA...查看源码: gads.rar
本文链接: http://gadiv.immuno-online.com/view-697808.html
发布于 : 2021-03-24
阅读(0)
最新动态
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
2021-03-24
联络我们