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

📄 percept.h

📁 感知器的VC实现#include "percept.h" #include "stdio.h" #include "stdlib.h"
💻 H
字号:
//percept.h        V. Rao, H. Rao
// Perceptron model

#include <stdio.h>
#include <iostream.h>
#include <math.h>

class ineuron
{
protected:
     float weight;
     float activation;
     friend class oneuron;
public:
     ineuron() {};
     ineuron(float j) ;
     float act(float x);
};

class oneuron
{
protected:
     int output;
     float activation;
     friend class network;
public:
     oneuron() { };
     void actvtion(float x[4], ineuron *nrn);
     int outvalue(float j) ;
};

class network
{
public:
     ineuron   nrn[4];
     oneuron   onrn;
     network(float,float,float,float);

};

⌨️ 快捷键说明

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