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

📄 k_averagedoc.h

📁 简单的模式识别的分类算法(K_均值算法)
💻 H
字号:
// K_averageDoc.h : interface of the CK_averageDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_K_AVERAGEDOC_H__CEE7C11E_EBA0_43B1_8F5B_84B19938DEDF__INCLUDED_)
#define AFX_K_AVERAGEDOC_H__CEE7C11E_EBA0_43B1_8F5B_84B19938DEDF__INCLUDED_
#include "iostream.h"
#include "classDlg.h"
#include <vector>
using   namespace   std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CK_averageDoc : public CDocument
{
protected: // create from serialization only
	CK_averageDoc();
	DECLARE_DYNCREATE(CK_averageDoc)

// Attributes
public:
	vector<CPoint> vec_feature_point; //保存所有的特征向量(二维)
	CPoint	feature_point;
	vector <CPoint>vec_point1;		//保存第一类的特征向量(二维)
	CPoint m_point1;
	vector <CPoint>vec_point2;     //保存第二类的特征向量(二维)
	CPoint m_point2;    
///////////////////////////////////处理多类问题的变量///////////////////////////////////////
	typedef vector<CPoint> Cvec_pt1;
	vector<Cvec_pt1> vec_point_class;
	int m_class_num;
	int m_first_center;
//	Cvec_pt1 vec_mypt;	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CK_averageDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CK_averageDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CK_averageDoc)
	afx_msg void OnMenuiKaverage();
	afx_msg void OnMenuiSaveClassresult();
	afx_msg void OnMenuiReset();
	afx_msg void OnMenuiSaveresult();
	afx_msg void OnMenuiDuolei();
	afx_msg void OnMenuiMultiepysave();
	afx_msg void OnMenuiHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_K_AVERAGEDOC_H__CEE7C11E_EBA0_43B1_8F5B_84B19938DEDF__INCLUDED_)

⌨️ 快捷键说明

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