Public Members
- NolfiCell ()
- NolfiCell (const NolfiCell& other)
- static void addGenesTo (Gentainer& g, int i, int types, int xsize, int ysize, const StringMap& params)
- void make ()
- void decodeFrom (const Gentainer& g, int i)
- void developAxon (Array<Coord2D>& result, double scale) const
- const Coord2D& pos () const
- void setPos (const Coord2D& npos)
- void setPos (double x, double y)
- void setTipRadius (double r)
- void mapTo (int neuron)
- void copy (const NolfiCell& o)
- void operator>> (OStream& out) const
- void drawEPS (EPSDevice& dc, double scale) const
- void check () const
Protected Members
Detailed Description
A temporary cell object used in the NolfiEncoding encoding
method. The NolfiCells are always contained in a NolfiNet. The
cell has an ability to sprout a L-System axon tree from itself,
where the shape of the tree is determined by parameters encoded in
the genome.
| void addGenesTo (Gentainer& g, int i, int types, int xsize, int ysize, const StringMap& params)
|
[static] Add the genes for a single cell (with given index) to the
given genome.
Parameters:
| g | Genetic container where the genes are placed. This is
typically NolfiEncoding.
|
| i | Index number of the gene. It will be used during
ontogenesis to access the gene.
|
| types | The number of different neuron types in the
genome. The values are always a power of two; typical values
are 8, 16, 32, 64.
|
| xsize | X-dimension of the cellular space of the encoding
method. A power of two. Typical value is 16.
|
| ysize | Y-dimension of the cellular space of the encoding
method. Typical value is 16.
|
| params | Other params in a String Map.
|
Initializes the cell.
Read the cell with given index description from given genetic
container.
Parameters:
| g | Genetic container that contains the genes to individualize the cell.
|
| i | The identifier number for the cell. Same as in addGenesTo.
|
[const] Grows an "axon tree" L-System from the cell.
Parameters:
| result | An array where the coordinates of the axon tips are
stored.
|
| scale | parameter tells usually the size of the neural
space.
|
[const]
Returns: The 2-dimensional coordinates of the cell in the cell
space.
Sets the coordinates of the cell in the cell space.
See also: setPos(double, x, double, y)
| void setPos (double x, double y)
|
Sets the coordinates of the cell in the cell space.
See also: setPos(const, Coord2D&, npos)
| void setTipRadius (double r)
|
Sets the connection radius of the axon tips. This radius
determines how far away the tip can be from another neuron to
create an actual connection.
Parameters:
| r | Typical values for the radius are 0.5...10.
|
The NolfiCell is an temporary object. The internal neuron
index tells it's identity in the final network. If the value is
EMPTYID (-1), the neuron will not exist in the final network.
[const] Draws the image of the cell and it's axon tree into the given
graphics driver.
Parameters:
| dc | Encapsulates PostScript graphics driver.
|
| scale | Drawing scale. The size of the image is multiplied by this factor.
|
[const] Implementation
[protected] Existence of the neuron.
[protected] Coordinates.
[protected] Axon segment angle.
[protected] Axon segment length.
[protected] Initial weight for all the connections.
[protected] Initial bias.
[protected] I/O neuron semantical identifier.
[protected] Connection radius from axon tips and branching points.
[protected] Neuron index in the final brain.
[protected] input, hidden, output or none.
| Generated by: magi@magi.yok.utu.fi on Wed Sep 29 17:27:27 199. |