pr_perception_approach.h
来自「模式识别中的线性感知器算法 通过了测试」· C头文件 代码 · 共 33 行
H
33 行
#ifndef PR_PERCEPTION_APPROACH
#define PR_PERCEPTION_APPORACH
#include "PR_unit.h"
#include<fstream>
#include<string>
class PR_Perception_Approach
{
public:
vector< PR_unit* > samples;
PR_unit *w;
// PR_Perception_Approach(){}
PR_Perception_Approach(std::ifstream &fin);
void Rand();
void PrintSamples();
void PrintW();
private:
int num_samples;
int num_vector;
const int max_iterator;
double C;
void Preprocessing(); //the preprecess step, expand the sapmles vector
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?