recognition.h
来自「数字识别」· C头文件 代码 · 共 27 行
H
27 行
// Recognition.h: interface for the CRecognition class.
// CRecognition 数字识别类,采用了十个神经元,每个神经元识别不同的笔划特征。
// 具体特征参见资源里的图
//////////////////////////////////////////////////////////////////////
#include "Node.h"
#if !defined(AFX_RECOGNITION_H__E3A34198_D2A4_40D5_A9DB_A2BD8E484D21__INCLUDED_)
#define AFX_RECOGNITION_H__E3A34198_D2A4_40D5_A9DB_A2BD8E484D21__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CRecognition
{
private:
CNode * node[10];
public:
CRecognition();
virtual ~CRecognition();
int Get(int * input); // 识别
void Save();
void Study(int * input, int * rs); // 学习,input为输入,rs为十个神经元对应正确输出
};
#endif // !defined(AFX_RECOGNITION_H__E3A34198_D2A4_40D5_A9DB_A2BD8E484D21__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?