Changeset 774 for cpp/frams/genetics/f4/f4_general.h
- Timestamp:
- 04/11/18 01:16:08 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/f4_general.h
r767 r774 21 21 * @param v pointer to the decremented value 22 22 */ 23 void rolling_dec(double * 23 void rolling_dec(double *v); 24 24 25 25 /** … … 27 27 * @param v pointer to the incremented value 28 28 */ 29 void rolling_inc(double * 29 void rolling_inc(double *v); 30 30 31 31 class f4_node; // later … … 51 51 * @return 1 if end of string was reached, or position of found character in sequence 52 52 */ 53 int scanrec(const char 53 int scanrec(const char* s, unsigned int slen, char stopchar); 54 54 55 55 … … 221 221 222 222 int ctrl; ///<neuron type 223 double state; ///<state of neuron224 223 double inertia; ///<inertia of neuron 225 224 double force; ///<force of neuron … … 253 252 254 253 255 // a collection of cells, like Organism, for developmental encoding256 254 /** 257 255 * A class representing a collection of cells. It is equivalent to an organism. … … 295 293 * Performs a single step of organism development. It runs each active cell 296 294 * in the organism. 297 * @return 0 if all cells are developed, 1 otherwise295 * @return 0 if all cells are developed, or 1 otherwise 298 296 */ 299 297 int onestep(); … … 336 334 * @param parent the parent of a new element 337 335 * @param insert the element to be inserted 338 * @return 0 if repair can be performed, -1 otherwise (the repair flag wasn't set in constructor)336 * @return 0 if repair can be performed, or -1 otherwise because the repair flag wasn't set in the constructor 339 337 */ 340 338 int setRepairInsert(int nerrpos, f4_node *parent, f4_node *insert); … … 432 430 * @return pointer to the nth subnode or NULL if not found 433 431 */ 434 f4_node 432 f4_node* ordNode(int n); 435 433 436 434 /** … … 438 436 * @return random subnode 439 437 */ 440 f4_node 438 f4_node* randomNode(); 441 439 442 440 /** … … 446 444 * @return a random subnode with a given size or NULL 447 445 */ 448 f4_node 446 f4_node* randomNodeWithSize(int min, int max); 449 447 450 448 /** … … 458 456 * @return pointer to a tree copy 459 457 */ 460 f4_node 458 f4_node* duplicate(); 461 459 462 460 /** … … 468 466 }; 469 467 470 // convert f4 geno string to tree structure (internal)471 472 468 /** 473 469 * The main function for converting a string of f4 encoding to a tree structure. Prepares … … 476 472 * @return a pointer to the f4_node object representing the f4 tree root 477 473 */ 478 f4_node 474 f4_node* f4_processtree(const char *geno); 479 475 480 476 /** … … 488 484 * @param genot the string holding all the genotype 489 485 * @param pos0 the current position of processing in string 490 * @param current parent of the analysed branch of the genotype486 * @param parent current parent of the analysed branch of the genotype 491 487 * @return 0 if processing was successful, otherwise returns the position of an error in the genotype 492 488 */ … … 504 500 * @return the pointer to the first character in string after connection definition 505 501 */ 506 const char * 502 const char *parseConnection(const char *fragm, int &relfrom, double &weight); 507 503 508 504 /** … … 518 514 * @return the pointer to the first character in string after the connection definition 519 515 */ 520 const char * 516 const char *parseConnectionWithNeuron(const char *fragm, string &neutype, double &weight); 521 517 522 518 #endif
Note: See TracChangeset
for help on using the changeset viewer.