Changeset 247 for cpp/frams/genetics/f4
- Timestamp:
- 11/07/14 17:51:01 (10 years ago)
- Location:
- cpp/frams/genetics/f4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/f4_general.cpp
r197 r247 593 593 594 594 595 int f4_Cell::addlink(f4_Cell * nfrom, double nw, longnt)595 int f4_Cell::addlink(f4_Cell * nfrom, double nw, int nt) 596 596 { 597 597 if (nolink >= MAXINPUTS - 1) return -1; // full! … … 675 675 676 676 677 f4_CellLink::f4_CellLink(f4_Cell * nfrom, double nw, longnt)677 f4_CellLink::f4_CellLink(f4_Cell * nfrom, double nw, int nt) 678 678 { 679 679 from = nfrom; … … 1234 1234 int i, j, t, res; 1235 1235 char tc1, tc2; 1236 longrelfrom;1236 int relfrom; 1237 1237 double w; 1238 1238 unsigned gpos, oldpos; -
cpp/frams/genetics/f4/f4_general.h
r197 r247 101 101 int onestep(); // execute one simulation step (till a division) 102 102 103 int addlink(f4_Cell * nfrom, double nw, longnt);103 int addlink(f4_Cell * nfrom, double nw, int nt); 104 104 void adjustRec(); 105 105 … … 129 129 //f4_OrientMat OM; 130 130 double mz; // freedom in z 131 longp2_refno; // number of last end part object, used in f0132 longjoint_refno; // number of the joint object, used in f0133 longneuro_refno; // number of the neuro object, used in f0134 135 longctrl; // neuron type131 int p2_refno; // number of last end part object, used in f0 132 int joint_refno; // number of the joint object, used in f0 133 int neuro_refno; // number of the neuro object, used in f0 134 135 int ctrl; // neuron type 136 136 double state; 137 137 double inertia; … … 147 147 { 148 148 public: 149 f4_CellLink(f4_Cell * nfrom, double nw, longnt);149 f4_CellLink(f4_Cell * nfrom, double nw, int nt); 150 150 f4_Cell * from; 151 151 // type: 0: input, 1 '*', 2 'G', 3 'T', 4 'S' 152 longt;152 int t; 153 153 double w; 154 154 }; … … 205 205 int pos; // original position in string 206 206 int i1; // internal int parameter1 207 longl1; // internal long parameter1207 int l1; // internal long parameter1 208 208 double f1; // internal double parameter1 209 209 -
cpp/frams/genetics/f4/oper_f4.cpp
r199 r247 606 606 607 607 608 u nsigned longGeno_f4::style(const char *g, int pos)608 uint32_t Geno_f4::style(const char *g, int pos) 609 609 { 610 610 char ch = g[pos]; … … 616 616 if (!strchr(STYL4CAT_MODIFIC STYL4CAT_NEUMOD STYL4CAT_DIGIT STYL4CAT_REST, ch)) 617 617 return GENSTYLE_CS(0, GENSTYLE_INVALID); 618 u nsigned longstyle = GENSTYLE_CS(0, GENSTYLE_STRIKEOUT); //default, should be changed below618 uint32_t style = GENSTYLE_CS(0, GENSTYLE_STRIKEOUT); //default, should be changed below 619 619 if (strchr("X ", ch)) style = GENSTYLE_CS(0, GENSTYLE_NONE); 620 620 if (strchr("N", ch)) style = GENSTYLE_RGBS(0, 200, 0, GENSTYLE_NONE); -
cpp/frams/genetics/f4/oper_f4.h
r197 r247 38 38 int crossOver(char *&g1, char *&g2, float& chg1, float& chg2); 39 39 const char* getSimplest() { return "X"; } 40 u nsigned longstyle(const char *g, int pos);40 uint32_t style(const char *g, int pos); 41 41 42 42 // mutation probabilities
Note: See TracChangeset
for help on using the changeset viewer.