pacmanspikeinput.h

来自「此代码经过大量使用」· C头文件 代码 · 共 62 行

H
62
字号
/***************************************************************************                          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 + =
减小字号Ctrl + -
显示快捷键?