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

📄 gene.cpp

📁 多目标进化算法源代码
💻 CPP
字号:
/*******************************************************************************	Gene.cpp				last change: 01/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 Gene.h*******************************************************************************/#include "Gene.h"#include "RandomNr.h"#include "TIKEAFExceptions.h"Gene::Gene(	RandomNr&	rn,		double		pm )	throw ( ProbabilityException )	: randomNr( rn ), pMutation( pm ){#ifndef NOTIKEAFEXCEPTIONS	if ( pm < 0 || pm > 1 )	{		throw ProbabilityException( "from Gene::Gene" );	}#endif}Gene::~Gene(){}voidGene::setPMutation( double pm )	throw ( ProbabilityException ){#ifndef NOTIKEAFEXCEPTIONS	if ( pm < 0 || pm > 1 )	{		throw ProbabilityException( "from Gene::setPMutation" );	}#endif	pMutation = pm;}

⌨️ 快捷键说明

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