Changeset 809 for cpp/frams/genetics/fn
- Timestamp:
- 06/21/18 02:43:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fn/fn_oper.cpp
r808 r809 62 62 } 63 63 64 //Creep-mutate one property64 //Creep-mutate variable(s) 65 65 int GenoOper_fn::mutate(char *&gene, float &chg, int &method) 66 66 { … … 86 86 else //mutate all variables 87 87 { 88 for (int which = 0; which < values.size(); which++)88 for (int which = 0; which < (int)values.size(); which++) 89 89 values[which] = GenoOperators::mutateCreep('f', values[which], bound_low[which], bound_high[which], stddev[which], false); 90 90 chg = 1.0f; … … 96 96 } 97 97 98 // /Averaging crossover98 //Averaging crossover 99 99 int GenoOper_fn::crossOver(char *&g1, char *&g2, float& chg1, float& chg2) 100 100 { … … 128 128 } 129 129 130 // /Applying some colors and font styles...130 //Applying some colors and font styles... 131 131 uint32_t GenoOper_fn::style(const char *g, int pos) 132 132 {
Note: See TracChangeset
for help on using the changeset viewer.