xcs.h

来自「Simple GA code (Pascal code from Goldber」· C头文件 代码 · 共 86 行

H
86
字号
/*/       (XCS-C 1.2)/	------------------------------------/	Learning Classifier System based on accuracy//     by /     Martin V. Butz/     Illinois Genetic Algorithms Laboratory (IlliGAL)/     University of Illinois at Urbana/Champaign/     butz@illigal.ge.uiuc.edu//     Last modified: 09-30-2003//     Main program header*/struct XCS{  char *tabOutFile;  int nrExps;  int maxNrSteps;  int testFrequency;  int maxPopSize;  double alpha;  double beta;  double gamma;  double epsilon0;  int nu;  int thetaGA;  double fitnessReduction;  double tournamentSize;  double forceDifferentInTournament;  double selectTolerance;  int crossoverType;  double chiGA;  double muGA;  int doGeneralizationMutation;  int doNicheMutation;    int doMAM;  int doGAErrorBasedSelect;    double delta;  int thetaDel;  int deletionType;  double dontCareProb;  int doGASubsumption;  int doActionSetSubsumption;  int thetaSub;  double exploreProb;  int teletransportation;  int initializePopulation; /* specifies if a random population should be generated initially */};struct xClassifierSet;void startExperiments(struct XCS *xcs1);struct XCS *readXCS(FILE *parameterFile);void startOneSingleStepExperiment(struct XCS *xcs, FILE *tabFile,struct xClassifierSet **pop, double **averages, int expnr, FILE *tabFile2);void doOneSingleStepProblemExplore(struct XCS *xcs, struct xClassifierSet **pop, char *state, int trialCounter);void doOneSingleStepProblemExploit(struct XCS *xcs, struct xClassifierSet **pop, char *state, int trialCounter, 				   int *correct, double *sysError);void startOneMultiStepExperiment(struct XCS *xcs, FILE *tabFile,struct xClassifierSet **pop, double **averages, int expnr);void doOneMultiStepProblemExplore(struct XCS *xcs, struct xClassifierSet **pop, char *state, int *counter);void doOneMultiStepProblemExploit(struct XCS *xcs, struct xClassifierSet **pop, char *state, int counter, int *stepToFood, double *sysError );void writePerformance(struct XCS *xcs, FILE *tabFile, structxClassifierSet *pop, int *correct, double *sysError, int counter, double **averages, int expnr);void writeAveragePerformance(struct XCS *xcs, double **averages);void setParameterValues(FILE *parameterFile, struct XCS *xcs);void setMacroValues(struct XCS *xcs);struct XCS *copyXCS(struct XCS *xcsOld);void freeXCS(struct XCS *xcs);void fprintXCS(FILE *outfile, struct XCS *xcs);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?