Changeset 896 for cpp/frams/genetics/fn
- Timestamp:
- 11/30/19 01:30:22 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fn/fn_oper.cpp
r809 r896 5 5 #include "fn_oper.h" 6 6 #include "fn_conv.h" 7 #include <common/nonstd.h> //r andomN, rnd017 #include <common/nonstd.h> //rndUint, rnd01 8 8 9 9 … … 80 80 if (mut_single_var) //mutate only one, randomly selected variable 81 81 { 82 int which = r andomN(values.size());82 int which = rndUint(values.size()); 83 83 values[which] = GenoOperators::mutateCreep('f', values[which], bound_low[which], bound_high[which], stddev[which], false); 84 84 chg = 1.0f / values.size(); … … 103 103 //xover_proportion = 0.1; //testing... 104 104 105 double proportion = xover_proportion_random ? 0.5 + rnd 0N(0.5) : xover_proportion;105 double proportion = xover_proportion_random ? 0.5 + rndDouble(0.5) : xover_proportion; 106 106 107 107 chg1 = proportion;
Note: See TracChangeset
for help on using the changeset viewer.