📄 gene.h
字号:
// Gene.h: interface for the CGene class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GENE_H__F8F89FAC_4F7C_4905_9544_7FE1759E1277__INCLUDED_)
#define AFX_GENE_H__F8F89FAC_4F7C_4905_9544_7FE1759E1277__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CGene
{
public:
double CalculateCohert(int c1, int c2, int cm, int ci);
double m_dCohert;
int GetPreCond(int nCond, int *&pPreCond);
void SetGama(double dGama);
void InitializeGene(double *pValue);
void SetCondSize(int nCond);
int GetCondIndex(int nCond);
int GetCondID(int nIndex);
void ChainCond();
void SortCondVal();
int * m_pChain;
double * m_pCondVal;
CGene();
virtual ~CGene();
private:
void Destruct();
void SetUp();
double m_dGama;
void CalculateThreshold();
double m_dThreshold;
int * m_pID;
int Partition(int nStart, int nEnd);
void QuickSort(int nStart, int nEnd);
int m_nCond;
};
#endif // !defined(AFX_GENE_H__F8F89FAC_4F7C_4905_9544_7FE1759E1277__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -