Machine Learning Library
|
Topology class for n dimensional cartesian grid. More...
#include <CSOM.h>
Public Member Functions | |
CCartesianTopology (int iNodes, vector< int > &rviNbUnits) | |
virtual | ~CCartesianTopology () |
void | getInfo (vector< int > &viDims) |
int | translateGrid (float *pfTrans, float *pfTarget, int iMode=0) |
Translates grid structure. More... | |
void | train (CDataset< Type > &rtTrainSet, CSOM< Type > *pSOM) |
Use topology specific training algorithm to build SOM. More... | |
void | buildDomains () |
int | getNumOutbounds (int iNode, int iK=0) |
![]() | |
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 | trainGrowing (CDataset< Type > &rtTrainSet, CSOM< Type > *pSOM, float fGrowParam) |
int | getNeighbour (int iNode, int iPos) |
int | getCenterNode (bool bVisibleNodes) |
int | getType () |
Returns type of topology. More... | |
void | setType (int iNewType) |
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) |
Public Attributes | |
vector< int > | viDimensions |
![]() | |
vector< bool > | vbExpand |
each node possible carries an expand attribute More... | |
Additional Inherited Members | |
![]() | |
int | iType |
type of lattice topology More... | |
vector< vector< int > > | vvNeighbours |
each node has a list of neighbours More... | |
CDataset< double > | tNodes |
dataset of node coordinates More... | |
CDenseVector< double > | tCenter |
vector describing topology center More... | |
vector< int > | viGeometry |
geometry data for VTK More... | |
vector< int > | viVisibleNode |
list of currently visible nodes More... | |
vector< int > | viVisiblePos |
each visible node points to its "real" node More... | |
int | iCenterNode |
int | iOldCenterNode |
int | iVisibleNodesCenter |
int | iNumVisibleNodes |
vector< pair< int, int > > | vDomains |
SOM area might consist of several domains. More... | |
Topology class for n dimensional cartesian grid.
CCartesianTopology< Type >::CCartesianTopology | ( | int | iNodes, |
vector< int > & | rviNbUnits | ||
) |
|
inlinevirtual |
|
virtual |
Reimplemented from CSomTopology< Type >.
|
virtual |
Returns dimension information
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 from CSomTopology< Type >.
|
inlinevirtual |
Reimplemented from CSomTopology< Type >.
|
inlinevirtual |
Use topology specific training algorithm to build SOM.
Reimplemented from CSomTopology< Type >.
References CSOM< Type >::train().
|
virtual |
Translates grid structure.
Reimplemented from CSomTopology< Type >.
vector<int> CCartesianTopology< Type >::viDimensions |