isodataview.h
来自「实现了模式识别中的利用isodata算法进行分类」· C头文件 代码 · 共 109 行
H
109 行
// 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 + =
减小字号Ctrl + -
显示快捷键?