Image Component Library (ICL)
|
Simple Wrapper class of the generic SOM Implementation for 2D SOMs. More...
#include <SOM2D.h>
Public Member Functions | |
SOM2D (unsigned int dataDim, unsigned int nXCells, unsigned int nYCells, const std::vector< utils::Range< float > > &prototypeBounds, float epsilon=0.1, float sigma=1) | |
Wrapper constructor for 2D SOMs. | |
const Neuron & | getNeuron (int x, int y) const |
Wrapper function to access a neuron at a certain grid position. |
Simple Wrapper class of the generic SOM Implementation for 2D SOMs.
As the SOM class provides a very abstract interface for generic K-D Self Organizing Maps, the SOM2D class offers a more convenient interface for exactly 2D SOMs.
Therefore it has a specialized constructor (now receiving the count of x-Cells and y-Cells directly as well as a specialized getNeuron()- function.
icl::math::SOM2D::SOM2D | ( | unsigned int | dataDim, |
unsigned int | nXCells, | ||
unsigned int | nYCells, | ||
const std::vector< utils::Range< float > > & | prototypeBounds, | ||
float | epsilon = 0.1 , |
||
float | sigma = 1 |
||
) | [inline] |
Wrapper constructor for 2D SOMs.
dataDim | dimension of data elements and therewith dimension of prototype vectors |
nXCells | cell count of the SOM in x-direction |
nYCells | cell count of the SOM in y-direction |
prototypeBounds |
epsilon |
sigma |
const Neuron& icl::math::SOM2D::getNeuron | ( | int | x, |
int | y | ||
) | const [inline] |
Wrapper function to access a neuron at a certain grid position.
x | x-grid locatio of the neuron |
y | y-grid locatio of the neuron |