types.h
来自「也是遗传算法的源代码」· C头文件 代码 · 共 59 行
H
59 行
/*************************************************************************** types.h - description ------------------- copyright : (C) 2000 by Matt Grover email : mgrover@amygdala.org ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#ifndef TYPES_H#define TYPES_H#define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC_MINOR__ * 100 \ + __GNUC_PATCHLEVEL__)#define HIDDENLAYER HIDDENNEURON#define INPUTLAYER INPUTNEURON#define OUTPUTLAYER OUTPUTNEURON#define IOLAYER IONEURONenum NeuronRole { HIDDENNEURON, INPUTNEURON, OUTPUTNEURON, IONEURON };typedef NeuronRole LayerType;//enum LayerType { HIDDENLAYER, INPUTLAYER, OUTPUTLAYER, IOLAYER };// TODO: Add refractory periodstruct LayerConstants { LayerType type; unsigned int layerId; float membraneTimeConst; float synapticTimeConst; float learningConst; float restPtnl; float thresholdPtnl;};struct UniConnectType { float pctConnect; float maxWeight;};struct GaussConnectType { float pctConnect; float meanWeight; float stdDev;};typedef unsigned long AmTimeInt;typedef unsigned long AmIdInt;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?