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

📄 interpolate.h

📁 一个非常有用的开源代码
💻 H
字号:
// ********************************************************// This is demo code. You may derive from, use, modify, and// distribute it without limitation for any purpose.// Obviously you don't get a warranty or an assurance of// fitness for a particular purpose with this code. Your// welcome to remove this header and claim original// authorship. I really don't care.// ********************************************************#ifndef __INTERPOLATE_H__#define __INTERPOLATE_H__#include "Gui.h"class InterpolateController;class GNeuralNet;class GArffRelation;class GArffData;class NeuralNetTrainingCritic;class GRealVectorSearch;class InterpolateDialog : public GWidgetDialog{protected:	InterpolateController* m_pController;	GWidgetTextButton* m_pCancelButton;	int m_nValidationTechnique;	double m_dTrainingPercent;public:	InterpolateDialog(InterpolateController* pController, int w, int h);	virtual ~InterpolateDialog();	virtual void OnReleaseTextButton(GWidgetTextButton* pButton);};#define SEARCH_ALGORITHM_COUNT 6class InterpolateView : public ViewBase{protected:	InterpolateDialog* m_pDialog;	GImage* m_pImageIn;	GImage* m_pImageOut[SEARCH_ALGORITHM_COUNT];	GArffRelation* m_pRelation;	GArffData* m_pTrainingData;	GNeuralNet* m_pNN1;	GNeuralNet* m_pNN2;	NeuralNetTrainingCritic* m_pCritics[SEARCH_ALGORITHM_COUNT];	GRealVectorSearch* m_pSearchAlgs[SEARCH_ALGORITHM_COUNT];	int m_nCurrentAlgorithm;	double m_dRunningTime[SEARCH_ALGORITHM_COUNT];	double m_dThisStartTime;	double m_dNextStopTime;public:	InterpolateView(InterpolateController* pController);	virtual ~InterpolateView();	virtual void OnChar(char c);	virtual void OnMouseDown(int x, int y);	virtual void OnMouseUp(int x, int y);	virtual bool OnMousePos(int x, int y);	bool DoSomeTraining();protected:	virtual void Draw(SDL_Surface *pScreen);	void UpdateImage(GNeuralNet* pNN, GImage* pImage);};class InterpolateController : public ControllerBase{protected:public:	InterpolateController();	virtual ~InterpolateController();	void RunModal();};#endif // __INTERPOLATE_H__

⌨️ 快捷键说明

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