Changeset 896 for cpp/frams/neuro
- Timestamp:
- 11/30/19 01:30:22 (5 years ago)
- Location:
- cpp/frams/neuro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-simple.h
r791 r896 77 77 public: 78 78 NeuroImpl* makeNew() { return new NI_Random(); }; 79 void go() { setState(rnd 01*2.0- 1.0); }79 void go() { setState(rndDouble(2) - 1.0); } 80 80 }; 81 81 -
cpp/frams/neuro/neuroimpl.cpp
r732 r896 85 85 for (i = 0; n = mod.getNeuro(i); i++) 86 86 { 87 n->state += (rnd 01- 0.5)*config.randominit;87 n->state += (rndDouble(1) - 0.5)*config.randominit; 88 88 ni = (NeuroImpl*)n->userdata[mytags_id]; 89 89 if (!ni) continue;
Note: See TracChangeset
for help on using the changeset viewer.