📄 featureselection.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 + -