📄 neuralnode.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -