Xmipp
v3.23.11-Nereus
|
#include <map.h>
Public Member Functions | |
Layout (const std::string &_id="") | |
virtual | ~Layout () |
std::vector< unsigned > | neighborhood (const ClassificationMap *_som, const SomPos &_center, double _radius) const |
std::vector< unsigned > | neighborhood (const FuzzyMap *_som, const SomPos &_center, double _radius) const |
virtual void | localAve (const FuzzyMap *_som, const SomPos &_center, std::vector< double > &_aveVector) const =0 |
virtual double | numNeig (const FuzzyMap *_som, const SomPos &_center) const =0 |
virtual bool | isIn (const SomPos &_center, const SomPos &_v, double _radius) const |
virtual double | dist (const SomPos &_center, const SomPos &_v) const =0 |
const std::string & | id () const |
This class creates a SOM Layout. The neighborhood of a point depends on the type of the layout chosen.
|
inline |
|
inlinevirtual |
Returns the distance between two vectors in their given position Parameter: _center Position of the center of neighborhood Parameter: _v Position of the code vector
Implemented in HEXALayout, and RECTLayout.
const std::string & Layout::id | ( | ) | const |
Returns true if the vector in the given position is in the neighborhood or false otherwise Parameter: _center Position of the center of neighborhood Parameter: _v Position of the code vector Parameter: _radius Radius of neighbohood
Definition at line 526 of file map.cpp.
|
pure virtual |
Returns the local average of a neuron in a non-const reference. (average of the sourounding vectors) in a Fuzzy SOM Parameter: _center Reference to the center of neighborhood Parameter: _aveVector: returns the average vector
Implemented in HEXALayout, and RECTLayout.
std::vector< unsigned > Layout::neighborhood | ( | const ClassificationMap * | _som, |
const SomPos & | _center, | ||
double | _radius | ||
) | const |
Constructs a neighborhood for the SOM Parameter: _som The som Parameter: _center Reference to the center of neighborhood Parameter: _radius Radius of neighbohood
Constructs a neighborhood Parameter: _som The som Parameter: _center Reference to the center of neighborhood Parameter: _radius Radius of neighbohood
Definition at line 479 of file map.cpp.
std::vector< unsigned > Layout::neighborhood | ( | const FuzzyMap * | _som, |
const SomPos & | _center, | ||
double | _radius | ||
) | const |
Constructs a neighborhood for the Fuzzy SOM Parameter: _som The Fuzzy Som Parameter: _center Reference to the center of neighborhood Parameter: _radius Radius of neighbohood
Constructs a neighborhood Parameter: _som The Fuzzy Som Parameter: _center Reference to the center of neighborhood Parameter: _radius Radius of neighbohood
Definition at line 501 of file map.cpp.
Returns the average number of neighbors in a Fuzzy SOM Parameter: _center Reference to the center of neighborhood Parameter: _radius: Radius
Implemented in HEXALayout, and RECTLayout.