nrlnode.hpp

来自「关于神经网络算法处理的一些程序。开发环境是C」· HPP 代码 · 共 26 行

HPP
26
字号
//Header:	Neural.hpp
//Language:	Borland C++ 3.1
//Version:	1.0
//Environ:	Any
//Date:		3/1996
//Porpuse:	Provide a base class of neural for neural network

#ifndef		__NRLNODE__HPP
#define		__NRLNODE__HPP

class NrlNode
{
  protected:
    double Thred;			//threshold value of the node
  public:
    double (*Fun)(double);	//node function
    //constructor
    NrlNode(void) { Thred=0; Fun=NULL; };
    NrlNode(double t, double (*f)(double)) { Thred=t; Fun=f; };
    //other methods
    void SetThred(double t) { Thred=t; };	//set threshold
    double GetThred() { return Thred; };	//get threshold
    void SetFun(double (*f)(double)) { Fun=f; };//set node function
};

#endif

⌨️ 快捷键说明

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