neuralnode.h
来自「使用神经网络开发包实现图形化的神经网络模拟」· C头文件 代码 · 共 48 行
H
48 行
// NeuronNode.h: interface for the NeuronNode class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NEURONNODE_H__6D681463_9830_4F3D_AF17_7ED384504D55__INCLUDED_)
#define AFX_NEURONNODE_H__6D681463_9830_4F3D_AF17_7ED384504D55__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define EDGENUM 12
#include"LinePoint.h"
#include "StdAfx.h" // Added by ClassView
class NeuralNode :public CObject
{
public:
NeuralNode( const NeuralNode &s ); // copy constructor
NeuralNode& operator=( const NeuralNode &s ); // assignment operator
virtual void Serialize(CArchive& ar);
DECLARE_SERIAL(NeuralNode)
ActivationFunction getActivationFunction();
void setWeight(real newWeight,int btnPosType);
void setActivationFunction(ActivationFunction newFunction);
void setBias(real newBias);
NeuralNode(CPoint pos,int index);
NeuralNode();
virtual ~NeuralNode();
public:
CPoint nodePos;
CRect edgeNodePos[EDGENUM];
CRect centerPos;
int totalIndex;
int neuronIndex;
int layerIndex;
int edgeType[EDGENUM]; //-1:输入 0:没有连线 1:输出
LinePoint outputLine[EDGENUM];
int inputNeuronIndex[EDGENUM];
private:
ActivationFunction activeFunction;
real bias;
};
#endif // !defined(AFX_NEURONNODE_H__6D681463_9830_4F3D_AF17_7ED384504D55__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?