cmac.h
来自「CMAC神经网络机械臂控制的设计matlab源码」· C头文件 代码 · 共 42 行
H
42 行
// CMAC representation for mountain car problem #include "mc.h" // definition of mountain car problem // define a tiling for the mcar problem #define POS_BINS 8#define VEL_BINS 8#define TILES 10#define ACTIONS 3 // coast, forward, backward struct cell {int pos_bin; int vel_bin;}; // make a class for a CMACclass cmac : public mcar { public: cmac(void); // create the tiles for a new position cmac(double pos, double vel); // call base constructor and set up tiles void display_cmac(void); // print out the offsets void active_tiles(); // map the state of the car into the tiles void display_active_tiles(); // show which tiles are active currently protected: cell atiles[TILES]; // keep list of active tiles double offset[2][TILES]; // 0 is for position, 1 is for velocity double pos_interval, vel_interval; // bin size for each dimension private: // put in the data structures here };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?