environment.h
来自「- XCS for Dynamic Environments + Conti」· C头文件 代码 · 共 50 行
H
50 行
/* XCSR_DE1.0
* --------------------------------------------------------
* Learning classifier system based on accuracy in dynamic environments
*
* by Huong Hai (Helen) Dam
* z3140959@itee.adfa.edu.au
* UNSW @ ADFA, Canberra Australia
* Artificial Life and Adaptive Robotics Laboratory
* http://www.itee.adfa.edu.au/~alar
*
* Last modified: 24-11-2005
*
*/
#ifndef ENV_H
#define ENV_H
#include "declare.h"
#include "random.h"
#include <fstream.h>
#include <string.h>
#include <iostream.h>
class Environment {
public:
Environment(int seed, double noise);
input_t *getInput(int type);
double changeEnv();
double setThreshold(double val){real_threshold = val;return real_threshold;}
int sgn(double);
double getRealThreshold(){return real_threshold;}
#ifdef MP
int* getDataDistribution();
#endif
double initDynEnv();
private:
int seed;
double noise;
Random *random;
double real_threshold;
int count_cycle;
double threshold[MAX_DYN_CYCLE];
int getClass(input_t *input, int type);
int getDataPosition(int binary[COND_OFFSET]);
#ifdef MP
int* data_info;
#endif
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?