亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? symbreg.cc

?? 用C++編寫的遺傳算法
?? CC
?? 第 1 頁 / 共 2 頁
字號:
// symbreg.cc/* ---------------------------------------------------------------Symbolic RegressionAn example for how to use gpc++ - The Genetic Programming KernelThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 1, or (at your option)any later version.This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.Copyright 1996, 1997 Thomas WeinbrennerFor comments, improvements, additions (or even money !?) contact:Thomas WeinbrennerGrauensteinstr. 2635789 LaimbachGermanyE-mail: thomasw@emk.e-technik.th-darmstadt.deWWW:    http://www.emk.e-technik.th-darmstadt/~thomasw--------------------------------------------------------------- */#include <iostream.h>#include <fstream.h>#include <strstream.h>#include <stdlib.h>#include <new.h>    // For the new-handler#include <math.h>   // fabs()#include <string.h>// Include header file of genetic programming system.#include "gp.h" #include "gpconfig.h"#include "symbreg.h"// Define the function to be symbolically regressed and set up// question and answer array with some points for the function#define EQUATION(x)  (x*x*x*x + x*x*x + x*x + x)#define DATAPOINTS 10double ques[DATAPOINTS];double answ[DATAPOINTS];// The TeX-fileofstream tout;int printTexStyle=0;// Define configuration parameters and the neccessary array to// read/write the configuration to a file. If you need more variables,// just add them below and insert an entry in the configArray.GPVariables cfg;char *InfoFileName="data";struct GPConfigVarInformation configArray[]={  {"PopulationSize", DATAINT, &cfg.PopulationSize},  {"NumberOfGenerations", DATAINT, &cfg.NumberOfGenerations},  {"CreationType", DATAINT, &cfg.CreationType},  {"CrossoverProbability", DATADOUBLE, &cfg.CrossoverProbability},  {"CreationProbability", DATADOUBLE, &cfg.CreationProbability},  {"MaximumDepthForCreation", DATAINT, &cfg.MaximumDepthForCreation},  {"MaximumDepthForCrossover", DATAINT, &cfg.MaximumDepthForCrossover},  {"SelectionType", DATAINT, &cfg.SelectionType},  {"TournamentSize", DATAINT, &cfg.TournamentSize},  {"DemeticGrouping", DATAINT, &cfg.DemeticGrouping},  {"DemeSize", DATAINT, &cfg.DemeSize},  {"DemeticMigProbability", DATADOUBLE, &cfg.DemeticMigProbability},  {"SwapMutationProbability", DATADOUBLE, &cfg.SwapMutationProbability},  {"ShrinkMutationProbability", DATADOUBLE, &cfg.ShrinkMutationProbability},  {"SteadyState", DATAINT, &cfg.SteadyState},  {"AddBestToNewPopulation", DATAINT, &cfg.AddBestToNewPopulation},  {"InfoFileName", DATASTRING, &InfoFileName},  {"", DATAINT, NULL}};// Print out a gene in typical math style. Don't be confused, I don't// make a difference whether this gene is the main program or an ADF,// I assume the internal structure is correct.void MyGene::printMathStyle (ostream& os, int lastPrecedence){  int precedence;  // Function or terminal?  if (isFunction ())    {      // Determine operator priority      switch (node->value ())	{	case '*': 	case '%': 	  precedence=1;	  break;	case '+': 	case '-': 	  precedence=0;	  break;	case 'A': 	  precedence=2;	  break;	default:	  GPExitSystem ("MyGene::printMathStyle", 			"Undefined function value");	}      // Do we need brackets?      if (lastPrecedence>precedence)	os << "(";      // Print out the operator and the parameters       switch (node->value ())	{	case '*': 	  NthMyChild(0)->printMathStyle (os, precedence);	  os << "*";	  NthMyChild(1)->printMathStyle (os, precedence);	  break;	case '+': 	  NthMyChild(0)->printMathStyle (os, precedence);	  os << "+";	  NthMyChild(1)->printMathStyle (os, precedence);	  break;	case '-': 	  NthMyChild(0)->printMathStyle (os, precedence);	  os << "-";	  NthMyChild(1)->printMathStyle (os, precedence);	  break;	case '%': 	  NthMyChild(0)->printMathStyle (os, precedence);	  os << "%";	  NthMyChild(1)->printMathStyle (os, precedence);	  break;	case 'A': 	  // This is the ADF0-function. We put the parameters in	  // brackets and start again with precedence 0.	  os << "ADF0 (";	  NthMyChild(0)->printMathStyle (os, 0);	  os << ",";	  NthMyChild(1)->printMathStyle (os, 0);	  os << ")";	  break;	default: 	  GPExitSystem ("MyGene::printMathStyle", 			"Undefined function value");	}      // Do we need brackets?      if (lastPrecedence>precedence)	os << ")";    }  // Print the terminal  if (isTerminal ())    os << *node;}// Print out a gene in LaTeX-style. Don't be confused, I don't make a// difference whether this gene is the main program or an ADF, I// assume the internal structure is correct.void MyGene::printTeXStyle (ostream& os, int lastPrecedence){  int precedence=0;  // Function or terminal?  if (isFunction ())    {      // Determine operator priority      switch (node->value())	{	case '*': 	case '%': 	  precedence=2;	  break;	case '+': 	case '-': 	  precedence=1;	  break;	case 'A': 	  precedence=3;	  break;	default:	  GPExitSystem ("MyGene::printTeXStyle", 			"Undefined function value");	}      // Do we need brackets?      if (lastPrecedence>precedence)	os << "\\left(";      // Print out the operator and the parameters       switch (node->value())	{	case '*': 	  NthMyChild(0)->printTeXStyle (os, precedence);	  os << " ";	  NthMyChild(1)->printTeXStyle (os, precedence);	  break;	case '+': 	  NthMyChild(0)->printTeXStyle (os, precedence);	  os << "+";	  NthMyChild(1)->printTeXStyle (os, precedence);	  break;	case '-': 	  NthMyChild(0)->printTeXStyle (os, precedence);	  os << "-";	  NthMyChild(1)->printTeXStyle (os, precedence);	  break;	case '%': 	  // As we use \frac, we start again with precedence 0	  os << "\\frac{";	  NthMyChild(0)->printTeXStyle (os, 0);	  os << "}{";	  NthMyChild(1)->printTeXStyle (os, 0);	  os << "}";	  break;	case 'A': 	  // This is the ADF0-function. We put the parameters in	  // brackets and start again with precedence 0.	  os << "f_2(";	  NthMyChild(0)->printTeXStyle (os, 0);	  os << ",";	  NthMyChild(1)->printTeXStyle (os, 0);	  os << ")";	  break;	default: 	  GPExitSystem ("MyGene::printTeXStyle", 			"Undefined function value");	}      // Do we need brackets?      if (lastPrecedence>precedence)	os << "\\right)";    }  // We can't let the terminal print itself, because we want to modify  // it a little bit  if (isTerminal ())    switch (node->value ())      {      case 'X': 	os << "x";	break;      case 1:	os << "x_1";	break;      case 2:	os << "x_2";	break;      default: 	GPExitSystem ("MyGene::printTeXStyle", 		      "Undefined terminal value");      }}// Print a Gene.void MyGene::printOn (ostream& os){  if (printTexStyle)    printTeXStyle (os);  else    printMathStyle (os);}// Print a GP. If we want a LaTeX-output, we must provide for the// equation environment, otherwise we simply call the print function// of our base class.void MyGP::printOn (ostream& os){  // If we use LaTeX-style, we provide here for the right equation  // overhead used for LaTeX.   if (printTexStyle)    {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲视频一区二区| 国产精品白丝在线| 欧美精彩视频一区二区三区| 亚洲精选一二三| 极品美女销魂一区二区三区免费| 91日韩精品一区| 精品国产乱码久久| 亚洲综合久久久久| 成人激情免费电影网址| 日韩美一区二区三区| 亚洲综合区在线| 白白色亚洲国产精品| 精品久久久久久最新网址| 夜夜亚洲天天久久| 99re这里都是精品| 国产女人18水真多18精品一级做 | 久久视频一区二区| 日韩制服丝袜av| 欧美性大战久久| 亚洲同性同志一二三专区| 国精产品一区一区三区mba视频| 91精品午夜视频| 亚洲一区二区偷拍精品| eeuss鲁一区二区三区| 国产欧美一区二区精品性| 九九精品一区二区| 欧美变态tickling挠脚心| 蜜桃视频在线一区| 日韩一级免费观看| 美脚の诱脚舐め脚责91| 91精品国产综合久久久蜜臀图片| 亚洲综合视频在线观看| 欧美亚洲图片小说| 亚洲自拍偷拍麻豆| 欧美在线不卡视频| 亚欧色一区w666天堂| 欧美日韩免费视频| 午夜私人影院久久久久| 欧美日韩亚洲不卡| 日韩精品亚洲一区二区三区免费| 欧美高清视频www夜色资源网| 肉色丝袜一区二区| 欧美精品777| 老汉av免费一区二区三区| 日韩精品专区在线影院观看| 韩国女主播一区二区三区| ww久久中文字幕| 不卡一二三区首页| 亚洲一二三四区| 欧美日韩国产一区| 精品亚洲aⅴ乱码一区二区三区| 精品国产精品一区二区夜夜嗨| 精品一区二区三区香蕉蜜桃| 久久久噜噜噜久久人人看 | 91在线无精精品入口| 亚洲欧美另类图片小说| 欧美日韩久久一区| 免费在线欧美视频| 久久精品无码一区二区三区| 91香蕉视频在线| 日韩精品久久理论片| 久久精品人人做人人爽97| 91小视频在线观看| 奇米精品一区二区三区在线观看一| 精品日本一线二线三线不卡| 粉嫩高潮美女一区二区三区| 亚洲高清一区二区三区| 精品国产91久久久久久久妲己 | 久久97超碰国产精品超碰| 久久免费的精品国产v∧| 91美女片黄在线观看91美女| 蜜臀久久99精品久久久久久9 | 国产精品88888| 亚洲美女免费视频| 精品国产乱码久久久久久久| 色呦呦日韩精品| 精久久久久久久久久久| 亚洲欧美精品午睡沙发| 精品国产网站在线观看| 在线观看不卡视频| 国产成人精品亚洲日本在线桃色| 亚洲国产综合人成综合网站| 亚洲国产成人在线| 欧美电视剧在线看免费| 91麻豆高清视频| 国产一区二区三区在线观看免费| 亚洲制服欧美中文字幕中文字幕| 国产婷婷一区二区| 欧美成人精品3d动漫h| 欧洲激情一区二区| 国产sm精品调教视频网站| 日韩福利视频导航| 亚洲精选在线视频| 国产精品欧美久久久久无广告| 日韩一区二区三区在线| 色屁屁一区二区| 99免费精品视频| 国产精品小仙女| 另类小说一区二区三区| 亚洲国产欧美在线人成| 亚洲丝袜精品丝袜在线| 中文字幕不卡在线播放| 久久久久久久久久电影| 精品国产91乱码一区二区三区 | 日本丰满少妇一区二区三区| 9久草视频在线视频精品| 国产麻豆精品在线观看| 久久成人羞羞网站| 男男视频亚洲欧美| 亚洲va韩国va欧美va| 一区二区三区日韩欧美| 亚洲欧洲av在线| 亚洲欧洲成人自拍| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 国产毛片一区二区| 久久精品国产精品亚洲精品| 久久9热精品视频| 精品一二线国产| 国内精品免费**视频| 国产一区三区三区| 国产一区二区福利视频| 国产成人一级电影| 风间由美一区二区三区在线观看| 国产成人免费视频网站高清观看视频| 国产福利一区在线观看| 高清免费成人av| 91老师片黄在线观看| 欧美性受xxxx| 欧美日韩午夜影院| 日韩欧美久久久| 欧美国产日韩一二三区| 中文字幕一区二区在线播放| 亚洲激情中文1区| 首页国产丝袜综合| 精品一区二区三区影院在线午夜| 高清国产一区二区三区| 丁香婷婷深情五月亚洲| 色94色欧美sute亚洲13| 欧美日韩午夜在线| 精品精品国产高清a毛片牛牛| 日本一区二区三级电影在线观看 | 风间由美性色一区二区三区| 91毛片在线观看| 欧美群妇大交群的观看方式 | 91成人在线免费观看| 91精品国产全国免费观看| 久久久亚洲综合| 综合久久久久综合| 日本最新不卡在线| 国产成人综合在线播放| 在线观看免费一区| www欧美成人18+| 亚洲激情一二三区| 国产在线看一区| 精品成人一区二区| 中文字幕在线不卡视频| 日本强好片久久久久久aaa| 国产91在线|亚洲| 欧美中文字幕一区二区三区 | 国产一区二区女| 欧美亚洲高清一区| 中文字幕第一区第二区| 奇米精品一区二区三区在线观看 | 欧美福利视频一区| 中文av字幕一区| 免费欧美高清视频| 91日韩在线专区| 26uuu欧美| 水蜜桃久久夜色精品一区的特点| www.66久久| 国产午夜精品在线观看| 午夜a成v人精品| 一本一道综合狠狠老| 国产日韩欧美精品一区| 国产高清无密码一区二区三区| 91福利精品视频| 国产精品国产精品国产专区不片| 蜜臀av一区二区| 欧美中文字幕一二三区视频| 中文字幕国产一区| 国产乱人伦偷精品视频不卡| 欧美精品乱码久久久久久| 综合在线观看色| 国产成人aaaa| 日韩三级av在线播放| 午夜婷婷国产麻豆精品| 欧美曰成人黄网| 夜夜嗨av一区二区三区中文字幕| 国产成人aaa| 国产日韩精品一区二区三区| 国产一区二区调教| 精品国精品自拍自在线| 久久av老司机精品网站导航| 欧美丰满少妇xxxbbb| 亚洲电影第三页| 精品视频全国免费看| 亚洲一区二区综合| 在线精品视频免费播放| 亚洲伊人色欲综合网| 欧美亚洲精品一区|