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

📄 type_ggeneticbits.html

📁 一个非常有用的开源代码
💻 HTML
字号:
<html><head><title>Generated Documentation</title></head><body>	<image src="headerimage.png">	<br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GGeneticBits</b></big></big></big><br><br></td><td></td></tr></table><br><br><big><big><i>Statics (public)</i></big></big><br><div style="margin-left: 40px;">double <big><b>BitsToDouble</b></big>(unsigned int* pBits, int nIndex, int nLength)<br><div style="margin-left: 80px;"><font color=brown> Converts the nLength bits starting at the nIndex'th bit in the pBits array of unsigned integers from a Gray-code integer value to a double ranging between 0 and 1. (This is for making the genetic algorithm learn real values.)</font></div><br></div><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GGeneticBits</b></big>(int nPopulation, int nBits)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GGeneticBits</b></big>()<br></div><br><big><big><i>Abstracts</i></big></big><br><div style="margin-left: 40px;">double <big><b>MeasureFitness</b></big>(unsigned int* pBits)<br><div style="margin-left: 80px;"><font color=brown> The critic</font></div><br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>DoFitnessProportionateSelection</b></big>(double dSurvivalRate, double dMutationRate, int nBitsPerCrossOverPoint)<br><div style="margin-left: 80px;"><font color=brown> Performs a single evolutionary generation using fitness proportionate selection</font></div><br>void <big><b>DoTournamentSelection</b></big>(double dProbThatMoreFitSurvives, double dSurvivalRate, double dMutationRate, int nBitsPerCrossOverPoint)<br><div style="margin-left: 80px;"><font color=brown> Performs a single evolutionary generation using tournament selection</font></div><br>int <big><b>GetRow</b></big>(unsigned int* nRow)<br><div style="margin-left: 80px;"><font color=brown> Returns a single row of bits from the population</font></div><br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>CrossOver</b></big>(unsigned int* pOutChild, int nMaternalBits, unsigned int* pMother, unsigned int* pFather)<br>int <big><b>Find</b></big>(double dSumFitness)<br>void <big><b>InvertBit</b></big>(int nRow, int nBit)<br>void <big><b>MeasureEverybodysFitness</b></big>()<br>double <big><b>SumFitness</b></big>()<br></div><br></body></html>

⌨️ 快捷键说明

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