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

📄 types.h

📁 此代码经过大量使用
💻 H
字号:
/***************************************************************************                          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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -