-
大小: 1KB文件類型: .m金幣: 1下載: 0 次發布日期: 2021-06-03
- 語言: Matlab
- 標簽:
資源簡介
(matlab源程序代碼)遺傳算法工具箱\genetic\crtbase.m遺傳算法工具箱\genetic\crtbase.m
代碼片段和文件信息
%?CRTbase.m?-?Create?base?vector?
%
%?This?function?creates?a?vector?containing?the?base?of?the?loci
%?in?a?chromosome.
%
%?Syntax:?baseVec?=?crtbase(Lind?base)
%
%?Input?Parameters:
%
% Lind -?A?scalar?or?vector?containing?the?lengths
% ???? ??of?the?alleles.??Sum(Lind)?is?the?length?of
% ???? ??the?corresponding?chromosome.
%
% base -?A?scalar?or?vector?containing?the?base?of
% ???? ??the?loci?contained?in?the?Alleles.
%
%?Output?Parameters:
%
% baseVec -?A?vector?whose?elements?correspond?to?the?base
% ???? ??of?the?loci?of?the?associated?chromosome?structure.
%
%?Author:?Andrew?C
評論
共有 條評論