Changeset 170
- Timestamp:
- 03/13/14 00:36:07 (11 years ago)
- Location:
- cpp/frams
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f1/conv_f1.cpp
r139 r170 302 302 g++; 303 303 } 304 return !out;304 return out.size(); 305 305 } 306 306 -
cpp/frams/genetics/oper_fx.cpp
r168 r170 182 182 for (int i = 0; i < Neuro::getClassCount(); i++) 183 183 if (Neuro::getClass(i)->genactive) active += Neuro::getClass(i); 184 if ( !active == 0) return NULL; else return active(randomN(!active));184 if (active.size() == 0) return NULL; else return active(randomN(active.size())); 185 185 } 186 186 -
cpp/frams/util/list.h
r153 r170 128 128 void hardclear() {resize(0); used=0;} ///< remove all elements and free mem 129 129 int size() const {return used;} ///< list size 130 int operator!() {return used;} ///< list size131 130 void operator=(const SListTempl<T>&src) ///duplicate 132 131 {
Note: See TracChangeset
for help on using the changeset viewer.