Changeset 966
- Timestamp:
- 06/28/20 21:59:14 (4 years ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fH/fH_general.cpp
r835 r966 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 18Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 10 10 #include "fH_general.h" 11 11 12 using namespace std; 13 #undef max //this macro is not needed here and it clashes with numeric_limits<>::max() 12 using std::pair, std::to_string, std::numeric_limits; 14 13 15 14 … … 603 602 } 604 603 } 605 // if there was no neuron that could begin connection, then return warning604 // if there was no neuron that could begin a connection, then return warning 606 605 if (!beginneu) 607 606 { … … 649 648 Pt3D fH_Builder::getNextDirection(int count, int number) 650 649 { 651 // In order to get evenly distributed sticks coming from the same Part method652 // uses a lgorithm for even distribution of points on a sphere. There are several653 // methods to perform this, usually they are iterative. Thismethod introduced650 // In order to get evenly distributed sticks coming from the same Part, the method 651 // uses an algorithm for even distribution of points on a sphere. There are several 652 // methods to perform this, usually iterative. The method introduced 654 653 // below offers not fully accurate, yet quite satisfying results. This is 655 // RSZ method (Rakhmanov, Saff and Zhou method), withuse of the golden angle.656 // This method is based on distribution of points along spiral that covers sphere657 // surface.658 659 // Following method works partially on spherical coordinates (r and theta is used).654 // the RSZ method (Rakhmanov, Saff and Zhou) with the use of the golden angle. 655 // This method is based on the distribution of points along a spiral that covers 656 // the sphere surface. 657 658 // The following method works partially on spherical coordinates (r and theta is used). 660 659 // The Z coordinate is from Cartesian coordinate system. The golden angle is used 661 // to "iterate" along spiral, while Z coordinate is used to move down the660 // to "iterate" along the spiral, while the Z coordinate is used to move down the 662 661 // sphere. 663 662 -
cpp/frams/genetics/fH/fH_general.h
r821 r966 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 18Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 39 39 40 40 /** 41 * Base class for all kinds of handles in fH encoding. Each line of fH genotype41 * Base class for all kinds of handles in fH encoding. Each line of fH genotype 42 42 * describes a handle. Handles can be divided into joints, neurons and 43 43 * connections. Every handle is described with 2 vectors of 'dimensions' values. … … 292 292 293 293 /** 294 * Processes single line of genotype. This line should begin with295 * "j:", "n:" or "c:". Otherwise it will be considered a serror.294 * Processes a single line of genotype. This line should begin with 295 * "j:", "n:" or "c:". Otherwise it will be considered an error. 296 296 * @param line line of a genotype 297 297 * @param linenumber number of line in genotype, required for error messages -
cpp/frams/genetics/genman.cpp
r965 r966 572 572 delete[] styletab; 573 573 latex += "}"; //for color (it was used at least once) 574 if (style & GENSTYLE_INVALID) latex += "}"; 574 575 if (style & GENSTYLE_BOLD) latex += "}"; 575 576 if (style & GENSTYLE_ITALIC) latex += "}";
Note: See TracChangeset
for help on using the changeset viewer.