51 static inline std::vector<T> vec2(
const T &t1,
const T &t2){
73 float sigma=1):
SOM(dataDim,vec2(nXCells,nYCells),prototypeBounds,epsilon,sigma){}
undocument this line if you encounter any issues!
Definition: Any.h:37
Simple Wrapper class of the generic SOM Implementation for 2D SOMs.
Definition: SOM2D.h:47
std::vector< Neuron > m_vecNeurons
set of neurons
Definition: SOM.h:177
const Neuron & getNeuron(int x, int y) const
Wrapper function to access a neuron at a certain grid position.
Definition: SOM2D.h:79
Generic implementation of D to K dim Self Organizing Map (SOM)
Definition: SOM.h:70
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.
Definition: SOM2D.h:68
std::vector< unsigned int > m_vecDimOffsets
internal utility offset vector for each dimension
Definition: SOM.h:180
SOM internal Neuron struct.
Definition: SOM.h:76