?? aprioriview.h
字號:
// AprioriView.h : interface of the CAprioriView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_APRIORIVIEW_H__CE066CDF_BA3A_4947_A6CC_A1347E7DBC63__INCLUDED_)
#define AFX_APRIORIVIEW_H__CE066CDF_BA3A_4947_A6CC_A1347E7DBC63__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define nMaxSize 1000
class CAprioriSet;
class CAprioriView : public CRecordView
{
protected: // create from serialization only
CAprioriView();
DECLARE_DYNCREATE(CAprioriView)
public:
//{{AFX_DATA(CAprioriView)
enum { IDD = IDD_APRIORI_FORM };
CListCtrl m_List_FreqItem;
CAprioriSet* m_pSet;
//}}AFX_DATA
// Attributes
public:
CAprioriDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAprioriView)
public:
virtual CRecordset* OnGetRecordset();
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
double dItemSupp;
void GenFreqItems();
void ShowFreqItem(int nScanCount);
void TransGenCand(int nCandFreqItem,int nCurrentCount);
int nCountCand[nMaxSize];
CString TransGenCandFreq[nMaxSize];
int nTransCandCount;
BOOL Prune(int nCandFreqItemCount,CString strCandFreqItem);
CString DbItem[nMaxSize][nMaxSize];//存放每個事務的各個單項目
int DbItemCount[nMaxSize];//每個事務的單項目個數
int nDbItemCount;//統計數據庫中事務個數
int nItemCount;//設置數據庫中總共有的各種不同項目個數
int nAllFreqItem;//前K-1所有頻繁項目個數
int LargeItemCount[nMaxSize];//存放各級頻繁項目個數
CString LargeItem[nMaxSize][nMaxSize];//存放各級頻繁項目
CString CandLargeItem[nMaxSize][nMaxSize];//存放各級候選項目
int CandLargeItemCount[nMaxSize];//存放各級候選項目個數
void FindLargeItem();
void SubItemGen(int strSubItemCount,CString strSubItem);
void AprioriGen(int nCandFreqItem,int nMinSupp);
void ClearItem();
void ShowDbInfo();
virtual ~CAprioriView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CAprioriView)
afx_msg void OnBnFreqItem();
afx_msg void OnParameter();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in AprioriView.cpp
inline CAprioriDoc* CAprioriView::GetDocument()
{ return (CAprioriDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_APRIORIVIEW_H__CE066CDF_BA3A_4947_A6CC_A1347E7DBC63__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -