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

📄 scs2.h

📁 机器学习中一个重要的方法——概念学习系统。
💻 H
字号:
	const int MAXLEN = 60;
	const int MAXCHROM = 100;
	const  float MAXFITNESS = 0.85;
	enum   tagboolean {F = 0,T =1};
	typedef  enum  tagboolean Allele;
	typedef  enum  tagboolean Boolean;
		typedef  struct {
			int  Rulenum;
			Allele  String[MAXLEN];
			float Fitness;
			int  Parent1,Parent2;
			}Chromosome;
	void initdata(void);
	void checkvaild(Chromosome*checkchrom,int index);
	void extractstr(char *str,int curbit,int length,int index);
	void report(void);
	void statistics(Chromosome *pop);
	int select(void);
	Allele mutation (Allele alleleval);
	void crossover(int parent1,int parent2,int child);
	void objfunc(Chromosome *pop);
	void replace(void);
	void generation(void);
	inline float random01(void);
	float rnd(int low,int high);
	Boolean flip(float val);
	void reportgraph(char *,int);
	void initcoords(int);

⌨️ 快捷键说明

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