📄 pacmanspikeinput.h
字号:
/*************************************************************************** pacmanspikeinput.h - description ------------------- begin : Tue Nov 6 2001 copyright : (C) 2001 by Rudiger Koch email : rkoch@rkoch.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 PACMANSPIKEINPUT_H#define PACMANSPIKEINPUT_H#include <amygdala/types.h>#if GCC_VERSION >= 30000 #include <ext/hash_map>#else #include <hash_map>#endif#include <amygdala/spikeinput.h>#include <amygdala/network.h>#include "pacman.h"/**Feed the feeling of pacman into the NN *@author Rudiger Koch <rkoch@rkoch.org> */class PacmanSpikeInput : public SpikeInput {public: PacmanSpikeInput(Network*, Pacman*); ~PacmanSpikeInput(); virtual void ReadInputBuffer(); void SetInputNeurons(vector <AmIdInt> in);protected: const AmTimeInt timingConst; AmTimeInt timeDiff[14]; AmTimeInt lastSpike[14]; Senses *feeling; Pacman *pacman; const AmTimeInt pacmanTimestep; AmTimeInt lastMoveTime; vector <AmIdInt> inputNeurons;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -