Changeset 513 for cpp/frams/genetics/f9
- Timestamp:
- 05/23/16 13:52:53 (9 years ago)
- Location:
- cpp/frams/genetics/f9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/oper_f9.cpp
r348 r513 26 26 } 27 27 28 int GenoOper_f9::checkValidity(const char* gene )28 int GenoOper_f9::checkValidity(const char* gene, const char *genoname) 29 29 { 30 30 if (!gene[0]) return 1; //empty is not valid … … 36 36 37 37 ///Remove all invalid letters from the genotype 38 int GenoOper_f9::validate(char *&gene )38 int GenoOper_f9::validate(char *&gene, const char *genoname) 39 39 { 40 40 SString validated; //new genotype (everything except turtle_commands_f9 is skipped) -
cpp/frams/genetics/f9/oper_f9.h
r286 r513 13 13 public: 14 14 GenoOper_f9(); 15 int checkValidity(const char * );16 int validate(char *& );17 int mutate(char *&g, float& chg,int &method);18 int crossOver(char *&g1, char *&g2,float& chg1,float& chg2);15 int checkValidity(const char *, const char *genoname); 16 int validate(char *&, const char *genoname); 17 int mutate(char *&g, float& chg, int &method); 18 int crossOver(char *&g1, char *&g2, float& chg1, float& chg2); 19 19 uint32_t style(const char *g, int pos); 20 const char* getSimplest() { return "R";}20 const char* getSimplest() { return "R"; } 21 21 22 22 double mut_prob; //mutation probability
Note: See TracChangeset
for help on using the changeset viewer.