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

📄 featureselection.h

📁 线形判别分析算法和knn最近邻算法的实现
💻 H
字号:
// FeatureSelection.h: interface for the FeatureSelection class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FEATURESELECTION_H__A3FC1112_F1C0_4925_BB41_9FB559C97DB3__INCLUDED_)
#define AFX_FEATURESELECTION_H__A3FC1112_F1C0_4925_BB41_9FB559C97DB3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define COLUMNDIMENSION 64
#define ROWDIMENSION 64
#define OVERLAPLEN 7
#define SUBFIELDIMENSION 16
#define TRAININGNUM 30
#define TESTNUM 20
#define STEP_LENGTH 5
#include <vector>
#include <string>
#include <fstream>
using namespace std;

class FeatureSelection  
{
public:
	FeatureSelection();
	FeatureSelection(string file);
    vector < vector< double > > trainingGroup;
	vector < vector< double > > testGroup;
	int CharacVectorGeneration();
	int OpenSampleFile(string s);
	virtual ~FeatureSelection();
private:
	int samp_num;
	int startRow;
	int destRow;
	int startColumn;
	int destColumn;
	ifstream in_stream;
	vector < vector < int > > bitMap;
	vector < double > characVector;
	int PreOperation();
	int OverlapFeatureSelection();
	double LengthWidthFeatureSelection();
	double PixRatioFeatureSelection();
};

#endif // !defined(AFX_FEATURESELECTION_H__A3FC1112_F1C0_4925_BB41_9FB559C97DB3__INCLUDED_)

⌨️ 快捷键说明

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