Changeset 726 for cpp/frams/neuro
- Timestamp:
- 01/19/18 19:37:43 (7 years ago)
- Location:
- cpp/frams/neuro/impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/impl/neuroimpl-simple.cpp
r286 r726 12 12 int NI_StdNeuron::lateinit() 13 13 { 14 #ifdef MODEL_V1_COMPATIBLE15 if (inertia<0) inertia=neuro->inertia;16 if (force<0) force=neuro->force;17 if (sigmo>1e9) sigmo=neuro->sigmo;18 #endif19 14 istate=newstate+neuro->state; // neuro->state -> random initialization 20 15 calcOutput(); -
cpp/frams/neuro/impl/neuroimpl-simple.h
r286 r726 19 19 public: 20 20 double inertia,force,sigmo; 21 NI_StdNeuron():velocity(0) 22 #ifdef MODEL_V1_COMPATIBLE 23 ,inertia(-1),force(-1),sigmo(1e10)// illegal values, will be adjusted in lateinit() 24 #else 25 ,inertia(0),force(0),sigmo(0) 26 #endif 21 NI_StdNeuron():velocity(0),inertia(0),force(0),sigmo(0) 27 22 {paramentries=NI_StdNeuron_tab;} 28 23 NeuroImpl* makeNew(){return new NI_StdNeuron();} // for NeuroFactory
Note: See TracChangeset
for help on using the changeset viewer.