#include <topology.h>
Inheritance diagram for ANNLayering:
Public Methods | |
ANNLayering (const char *description=NULL) | |
void | make (const char *description) |
int | layerIndex (int layer) const |
void | getPos (int i, int &layerno, int &layerpos) const |
int | totalUnits () const |
int | layers () const |
String | toString () const |
int | layerSize (int i) const |
int | operator[] (int i) const |
int & | operator[] (int i) |
void | empty () |
void | operator= (const ANNLayering &o) |
void | removeLayer (int i) |
Currently semi-obsolete, but still used by various parts of Inanna.
Definition at line 71 of file topology.h.
|
Standard constructor. See make for info about the parameters. Definition at line 78 of file topology.h. References make(). |
|
Clears the layering; makes the network description empty.
Reimplemented in LayeredTopology. Definition at line 119 of file topology.h. Referenced by LayeredTopology::empty(). |
|
Calculates the relative layer and offset for given absolute unit index.
Definition at line 99 of file topology.cc. Referenced by ANNetwork::cleanup(), and ANNetwork::connectFfw(). |
|
Calculates the absolute neuron index offset for the given layer index; index of the first neuron on that layer. If the given layer index is negative, it is substracted from the number of layers (-1 means the output layer, -2 the layer below that, etc). Definition at line 75 of file topology.cc. Referenced by ANNetwork::connectFfw(), ANNetwork::connectFullFfw(), ANNetwork::drawFeedForward(), and totalUnits(). |
|
Returns the number of layers in the network.
Definition at line 90 of file topology.h. Referenced by ANNetwork::connectFullFfw(), ANNetwork::drawEPS(), ANNetwork::drawFeedForward(), and toString(). |
|
Returns the size of the layer i. Const version. If the given layer index is negative, it is substracted from the number of layers (-1 means the output layer, -2 the layer below that, etc). Definition at line 99 of file topology.h. |
|
Sets the layer structure according to the given description string.
Definition at line 54 of file topology.cc. Referenced by ANNLayering(), ANNetwork::drawFeedForward(), and LayeredTopology::LayeredTopology(). |
|
Standard copy operator.
Definition at line 122 of file topology.h. References mLayers. |
|
Returns the size of the layer i. Non-const version. If the given layer index is negative, it is substracted from the number of layers (-1 means the output layer, -2 the layer below that, etc). Definition at line 115 of file topology.h. |
|
Returns the size of the layer i. Const version. If the given layer index is negative, it is substracted from the number of layers (-1 means the output layer, -2 the layer below that, etc). Definition at line 107 of file topology.h. |
|
Removes a layer. NOTE: The negative indexing is not allowed here. Definition at line 127 of file topology.h. Referenced by ANNetwork::cleanup(). |
|
Converts the layering back to layering description string.
Definition at line 108 of file topology.cc. References layers(). |
|
Returns the total number of units in the network.
Definition at line 86 of file topology.h. References layerIndex(). |