⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitgene.h

📁 多目标进化算法源代码
💻 H
字号:
/*******************************************************************************	BitGene.h			last change: 02/04/1999				version: 0.0.0				design:	Eckart Zitzler			Paul E. Sevinc					implementation:	Paul E. Sevinc				(c) 1998-1999:	Computer Engineering and Networks Laboratory				Swiss Federal Institute of Technology Zurich				description:			See also Gene.h			BitGene is a concrete subclass of Gene.						A BitGene instance codes one of two possible			alleles. They are stored as bools. Therefore			setAllele() expects a bool and getAllele() returns			a bool.*******************************************************************************/#ifndef BIT_GENE_H#define BIT_GENE_H#include "Gene.h"#include "RandomNr.h"#include "TIKEAFExceptions.h"class BitGene : public Gene{	private:			bool	allele;		public:			// initialize the mutation probability			// the allele is not (randomly) set!				BitGene( RandomNr&, double )					throw ( ProbabilityException );							void	initRandom();						// flip the allele			void	mutate();						// return a BitGene			Gene*	clone();						void	setAllele( bool );						bool	getAllele();};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -