gstabsearch.h

来自「一个由Mike Gashler完成的机器学习方面的includes neural」· C头文件 代码 · 共 41 行

H
41
字号
#ifndef __GSTABSEARCH_H__#define __GSTABSEARCH_H__#include "GSearch.h"// Each iteration performs a binary (divde-and-conquer) search.// Because the high-level divisions are typically less correlated// with the final result than the low-level divisions, it searches// through the space of possible "stabs" by toggling choices in// the order from high level to low level.class GStabSearch : public GRealVectorSearch{protected:	int m_nDimensions;	unsigned int m_nMask[4];	double m_dMin, m_dRange;	double* m_pMins;	double* m_pRanges;	double* m_pVector;	double m_dTolerance;	int m_nCurrentDim;	int m_nMaskPos;	int m_nStabs;public:	GStabSearch(GRealVectorCritic* pCritic, double dMin, double dRange);	virtual ~GStabSearch();	virtual void Iterate();	void SetTolerance(double d) { m_dTolerance = d; }	int GetStabCount() { return m_nStabs; }#ifndef NO_TEST_CODE	static void Test();#endif // !NO_TEST_CODEprotected:	void Reset();};#endif // __GSTABSEARCH_H__

⌨️ 快捷键说明

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