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

📄 isodataview.h

📁 实现了模式识别中的利用isodata算法进行分类
💻 H
字号:
// ISODATAView.h : interface of the CISODATAView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ISODATAVIEW_H__B76B1FB4_52ED_4637_BAC1_E1918DCBB365__INCLUDED_)
#define AFX_ISODATAVIEW_H__B76B1FB4_52ED_4637_BAC1_E1918DCBB365__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class  vector
{
public:
	double x;
    double y;
	vector()
	{
		x=0;
		y=0;
	}
	vector(vector &a)
	{
		x=a.x;
		y=a.y;
	}

};


class CISODATAView : public CView
{
protected: // create from serialization only
	CISODATAView();
	DECLARE_DYNCREATE(CISODATAView)

// Attributes
public:
	CISODATADoc* GetDocument();
    void comp(double a,double b);
   
    void xiuzheng();
    void fenlie ();
    void hebing ();
	
// Operations
public:
    vector ss[8];
    vector gg[8][8];
	vector mid[8];
	int n[8];
	int c;
	int cn;
	int k;
	int cs;
	int l;
	int cc;
	int count;
	double total;
	int signal;
	double sm;
	double sd[8];
    vector sc[8];
    int flag;

//	double sm[8];
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CISODATAView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CISODATAView)
	afx_msg void Oniso();
	afx_msg void Onok();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ISODATAView.cpp
inline CISODATADoc* CISODATAView::GetDocument()
   { return (CISODATADoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_ISODATAVIEW_H__B76B1FB4_52ED_4637_BAC1_E1918DCBB365__INCLUDED_)

⌨️ 快捷键说明

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