nconnector.cpp
来自「amygdata的神经网络算法源代码」· C++ 代码 · 共 40 行
CPP
40 行
/*************************************************************************** nconnector.cpp - description ------------------- begin : Tue Feb 8 2005 copyright : (C) 2005 by Rudiger Koch email : rkoch@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. * * * ***************************************************************************/#include <amygdala/nconnector.h>#include <amygdala/synapse.h>#include <amygdala/logging.h>#include <iostream>using namespace std;using namespace Amygdala;ConnectorRegistry ConnectorRegistry::registry;ConnectorRegistry::ConnectorRegistry(){ LOGGER(2, "Registering NeuronConnectors"); connectorMap["StaticSynapse"] = new NeuronConnector <StaticSynapse, StaticSynapseProperties > (); connectorMap["DynamicSynapse"] = new NeuronConnector <DynamicSynapse, DynamicSynapseProperties > ();}NConnector * ConnectorRegistry::GetConnector(const std::string & name){ return connectorMap[name];}void ConnectorRegistry::Register(std::string name, NConnector * connector) {}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?