📄 environment.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -