gene.h

来自「用分类算法挖掘数据表达模式中的平移变化和放缩变化」· C头文件 代码 · 共 43 行

H
43 行
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?