#include <CSOM.h>
|
| CSomTopology (int iNumNodes) |
|
virtual | ~CSomTopology () |
|
void | setNodePosition (int i, CVector< double > &rtPos) |
|
const CVector< double > & | getNodePosition (int i) |
|
const CVector< double > & | getCenterPosition () |
|
void | addLink (int iFrom, int iTo) |
|
int | getNumNeighbours (int i) |
|
int | getNumDomains () |
|
void | addDomain (int iStart, int iEnd) |
|
int | getDomainStart (int iDomain) |
|
int | getDomainEnd (int iDomain) |
|
int | getDomainSize (int iDomain) |
|
int | getDomainOfNode (int iNode) |
|
virtual void | train (CDataset< Type > &rtTrainSet, CSOM< Type > *pSOM) |
| Use topology specific training algorithm to build SOM. More...
|
|
virtual void | trainGrowing (CDataset< Type > &rtTrainSet, CSOM< Type > *pSOM, float fGrowParam) |
|
virtual void | buildDomains () |
|
int | getNeighbour (int iNode, int iPos) |
|
int | getCenterNode (bool bVisibleNodes) |
|
int | getType () |
| Returns type of topology. More...
|
|
void | setType (int iNewType) |
|
virtual void | getInfo (vector< int > &viDims) |
|
virtual int | translateGrid (float *pfTrans, float *pfTarget, int iMode=0) |
| Translates grid structure. More...
|
|
virtual void | setParameter (float *pfParam) |
| Sets parameters. More...
|
|
int | getGeometrySize () |
|
int | getGeometryPoint (int iPoint) |
|
virtual int | getNumPolyLines () |
|
virtual bool | getPolyLine (int iLine, int &riStart, int &riEnd) |
|
virtual int | getNumOutbounds (int iNode, int iK=0) |
|
|
vector< bool > | vbExpand |
| each node possible carries an expand attribute More...
|
|
Constructor - creates a new instance for given number of nodes
- Parameters
-
iNumNodes | number of nodes for new grid |
template<class Type >
void CSomTopology< Type >::addDomain |
( |
int |
iStart, |
|
|
int |
iEnd |
|
) |
| |
|
inline |
Adds link information between two nodes
- Parameters
-
iFrom | Origin node from which the link starts |
iTo | Target node |
template<class Type >
int CSomTopology< Type >::getCenterNode |
( |
bool |
bVisibleNodes | ) |
|
|
inline |
template<class Type >
virtual void CSomTopology< Type >::getInfo |
( |
vector< int > & |
viDims | ) |
|
|
inlinevirtual |
Returns dimension information
- Parameters
-
viDims | Reference to vector. For a two dimensional lattice structure viDims should contain two vector elements. Each element denotes the number of nodes along that dimension. |
Reimplemented in CCartesianTopology< Type >, and CHyperbolicTopology< Type >.
template<class Type >
int CSomTopology< Type >::getNeighbour |
( |
int |
iNode, |
|
|
int |
iPos |
|
) |
| |
|
inline |
Returns node number of specific neighbour of node
- Parameters
-
iNode | Number of node |
iPos | specifies which neighbour id to return |
- Returns
- number of neighbour node
Returns node position
- Parameters
-
- Returns
- Vector describing position of the node on the lattice
Returns number of neighbours for specific node
- Parameters
-
- Returns
- Number of neighbours
template<class Type >
virtual int CSomTopology< Type >::getNumOutbounds |
( |
int |
iNode, |
|
|
int |
iK = 0 |
|
) |
| |
|
inlinevirtual |
template<class Type >
virtual bool CSomTopology< Type >::getPolyLine |
( |
int |
iLine, |
|
|
int & |
riStart, |
|
|
int & |
riEnd |
|
) |
| |
|
inlinevirtual |
Returns type of topology.
Sets node position
- Parameters
-
i | Number of node to set |
rtPos | Vector describing position of the node on the lattice |
template<class Type >
virtual void CSomTopology< Type >::setParameter |
( |
float * |
pfParam | ) |
|
|
inlinevirtual |
template<class Type >
virtual void CSomTopology< Type >::trainGrowing |
( |
CDataset< Type > & |
rtTrainSet, |
|
|
CSOM< Type > * |
pSOM, |
|
|
float |
fGrowParam |
|
) |
| |
|
inlinevirtual |
template<class Type >
virtual int CSomTopology< Type >::translateGrid |
( |
float * |
pfTrans, |
|
|
float * |
pfTarget, |
|
|
int |
iMode = 0 |
|
) |
| |
|
inlinevirtual |
template<class Type >
friend class CSOM< Type > |
|
friend |
vector describing topology center
dataset of node coordinates
each node possible carries an expand attribute
SOM area might consist of several domains.
list of currently visible nodes
each visible node points to its "real" node
each node has a list of neighbours
The documentation for this class was generated from the following file: