Magi

Contact info
Studies
  Scientific publications
  Master's thesis
Work
Software
Hobbies
Other Articles
  Evolution
  Metsola
  Pseudoart
Photography
Historical

© Marko Grönroos, 1998


class NolfiCell

A temporary cell object used in the NolfiEncoding encoding method. More...

Definition#include <nolfinet.h>
InheritsObject (common)
Inherited byCangelosiCell
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

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:
gGenetic container where the genes are placed. This is typically NolfiEncoding.
iIndex number of the gene. It will be used during ontogenesis to access the gene.
typesThe number of different neuron types in the genome. The values are always a power of two; typical values are 8, 16, 32, 64.
xsizeX-dimension of the cellular space of the encoding method. A power of two. Typical value is 16.
ysizeY-dimension of the cellular space of the encoding method. Typical value is 16.
paramsOther params in a String Map.

void make ()

Initializes the cell.

void decodeFrom (const Gentainer& g, int i)

Read the cell with given index description from given genetic container.

Parameters:
gGenetic container that contains the genes to individualize the cell.
iThe identifier number for the cell. Same as in addGenesTo.

void developAxon (Array<Coord2D>& result, double scale)
[const]

Grows an "axon tree" L-System from the cell.

Parameters:
resultAn array where the coordinates of the axon tips are stored.
scaleparameter tells usually the size of the neural space.

const Coord2D& pos ()
[const]

Returns: The 2-dimensional coordinates of the cell in the cell space.

void setPos (const Coord2D& npos)

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:
rTypical values for the radius are 0.5...10.

void mapTo (int neuron)

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.

void drawEPS (EPSDevice& dc, double scale)
[const]

Draws the image of the cell and it's axon tree into the given graphics driver.

Parameters:
dcEncapsulates PostScript graphics driver.
scaleDrawing scale. The size of the image is multiplied by this factor.

void check ()
[const]

Implementation

bool mExpression
[protected]

Existence of the neuron.

Coord2D mCoord
[protected]

Coordinates.

double mSegmentAngle
[protected]

Axon segment angle.

double mSegmentLength
[protected]

Axon segment length.

double mWeight
[protected]

Initial weight for all the connections.

double mBias
[protected]

Initial bias.

int mTypeID
[protected]

I/O neuron semantical identifier.

double mTipRadius
[protected]

Connection radius from axon tips and branching points.

int mFinalID
[protected]

Neuron index in the final brain.

int mFinalType
[protected]

input, hidden, output or none.

Generated by: magi@magi.yok.utu.fi on Wed Sep 29 17:27:27 199.