#include <PndSomNode.h>
|
| | PndSomNode () |
| |
| | PndSomNode (size_t WeightsDim) |
| |
| | PndSomNode (std::vector< float > const &weight) |
| |
| | PndSomNode (std::string const &label, std::vector< float > const &weight) |
| |
| | PndSomNode (int lft, int top, int rgt, int bot, size_t WeightsDim=0) |
| |
| | PndSomNode (int lft, int top, int rgt, int bot, size_t WeightsDim, std::string const &label) |
| |
| | PndSomNode (int lft, int top, int rgt, int bot, std::string const &label, std::vector< float > const &weight) |
| |
| | PndSomNode (PndSomNode const &oth) |
| |
| virtual | ~PndSomNode () |
| |
| PndSomNode & | operator= (PndSomNode const &oth) |
| |
| virtual void | InitNode () |
| |
| int | GetLeft () const |
| |
| void | SetLeft (int val) |
| |
| int | GetRight () const |
| |
| void | SetRight (int val) |
| |
| int | GetTop () const |
| |
| void | SetTop (int val) |
| |
| int | GetBottom () const |
| |
| void | SetBottom (int val) |
| |
| size_t | GetNodeDimension () const |
| |
| void | SetNodeDimension (size_t val) |
| |
| std::string const & | GetLabel () const |
| |
| void | SetLabel (std::string const &val) |
| |
| std::vector< float > const & | GetWeight () const |
| |
| void | SetWeight (std::vector< float > const &val) |
| |
| void | SetNeighbours (std::vector< std::pair< size_t, double >> const &val) |
| |
| std::vector< std::pair< size_t, double > > const & | GetNeighbours () const |
| |
| double | GetXPos () const |
| |
| void | SetXPos (double xp) |
| |
| double | GetYPos () const |
| |
| void | SetYPos (double yp) |
| |
| void | ResetRespList () |
| |
| void | AddToRespList (size_t idx) |
| |
| void | SetRespList (std::vector< size_t > const &val) |
| |
| std::vector< size_t > const & | GetRespoList () const |
| |
| void | SetLabelMap (std::map< std::string, size_t > const &val) |
| |
| std::map< std::string, size_t > const & | GetLabelMap () const |
| |
Definition at line 20 of file PndSomNode.h.
◆ PndSomNode() [1/8]
| PndSomNode::PndSomNode |
( |
| ) |
|
◆ PndSomNode() [2/8]
| PndSomNode::PndSomNode |
( |
size_t |
WeightsDim | ) |
|
|
explicit |
Constructor
- Parameters
-
| WeightsDim | Dimension of the weights. |
◆ PndSomNode() [3/8]
| PndSomNode::PndSomNode |
( |
std::vector< float > const & |
weight | ) |
|
|
explicit |
Constructor
- Parameters
-
| weight | Weights of the current node. |
◆ PndSomNode() [4/8]
| PndSomNode::PndSomNode |
( |
std::string const & |
label, |
|
|
std::vector< float > const & |
weight |
|
) |
| |
Constructor
- Parameters
-
| label | Assigned label to the current node. |
| weight | Weights of the current node. |
◆ PndSomNode() [5/8]
| PndSomNode::PndSomNode |
( |
int |
lft, |
|
|
int |
top, |
|
|
int |
rgt, |
|
|
int |
bot, |
|
|
size_t |
WeightsDim = 0 |
|
) |
| |
Constructor
- Parameters
-
| lft | Left neighbour. |
| top | Top neighbour. |
| rgt | Right neighbour. |
| bot | Bottom neighbour. |
| WeightsDim | Dimension of the weights. |
◆ PndSomNode() [6/8]
| PndSomNode::PndSomNode |
( |
int |
lft, |
|
|
int |
top, |
|
|
int |
rgt, |
|
|
int |
bot, |
|
|
size_t |
WeightsDim, |
|
|
std::string const & |
label |
|
) |
| |
Constructor
- Parameters
-
| lft | Left neighbour. |
| top | Top neighbour. |
| rgt | Right neighbour. |
| bot | Bottom neighbour. |
| WeightsDim | Dimension of the weights. |
| label | Assigned label to the current node. |
◆ PndSomNode() [7/8]
| PndSomNode::PndSomNode |
( |
int |
lft, |
|
|
int |
top, |
|
|
int |
rgt, |
|
|
int |
bot, |
|
|
std::string const & |
label, |
|
|
std::vector< float > const & |
weight |
|
) |
| |
Constructor
- Parameters
-
| lft | Left neighbour. |
| top | Top neighbour. |
| rgt | Right neighbour. |
| bot | Bottom neighbour. |
| label | Assigned label to the current node. |
| weight | Weights of the current node. |
◆ PndSomNode() [8/8]
◆ ~PndSomNode()
| virtual PndSomNode::~PndSomNode |
( |
| ) |
|
|
virtual |
◆ AddToRespList()
| void PndSomNode::AddToRespList |
( |
size_t |
idx | ) |
|
Modify the node responsibility list
◆ GetBottom()
| int PndSomNode::GetBottom |
( |
| ) |
const |
|
inline |
◆ GetLabel()
| std::string const & PndSomNode::GetLabel |
( |
| ) |
const |
|
inline |
Modify node label (class name)
Definition at line 278 of file PndSomNode.h.
280 return this->m_label;
◆ GetLabelMap()
| std::map<std::string, size_t> const& PndSomNode::GetLabelMap |
( |
| ) |
const |
◆ GetLeft()
| int PndSomNode::GetLeft |
( |
| ) |
const |
|
inline |
Getter and setters for the neighbours.
Definition at line 228 of file PndSomNode.h.
230 return this->m_iLeft;
◆ GetNeighbours()
| std::vector< std::pair< size_t, double > > const & PndSomNode::GetNeighbours |
( |
| ) |
const |
|
inline |
Get the neigbours of the current node.
- Returns
- The neigbours of the current node.
Definition at line 313 of file PndSomNode.h.
315 return this->m_NeighbourList;
◆ GetNodeDimension()
| size_t PndSomNode::GetNodeDimension |
( |
| ) |
const |
|
inline |
Modify node weight dimension
Definition at line 268 of file PndSomNode.h.
270 return this->m_weightDim;
◆ GetRespoList()
| std::vector<size_t> const& PndSomNode::GetRespoList |
( |
| ) |
const |
◆ GetRight()
| int PndSomNode::GetRight |
( |
| ) |
const |
|
inline |
◆ GetTop()
| int PndSomNode::GetTop |
( |
| ) |
const |
|
inline |
◆ GetWeight()
| std::vector< float > const & PndSomNode::GetWeight |
( |
| ) |
const |
|
inline |
Get the weights for the current node.
- Returns
- The weights of the current node.
Definition at line 288 of file PndSomNode.h.
290 return this->m_Weights;
◆ GetXPos()
| double PndSomNode::GetXPos |
( |
| ) |
const |
|
inline |
Position of the node in the grid. The position is the center point of each mesh node.
Definition at line 293 of file PndSomNode.h.
◆ GetYPos()
| double PndSomNode::GetYPos |
( |
| ) |
const |
|
inline |
◆ InitNode()
| virtual void PndSomNode::InitNode |
( |
| ) |
|
|
virtual |
◆ operator=()
◆ ResetRespList()
| void PndSomNode::ResetRespList |
( |
| ) |
|
Removes all elements from the responsibility list.
◆ SetBottom()
| void PndSomNode::SetBottom |
( |
int |
val | ) |
|
|
inline |
◆ SetLabel()
| void PndSomNode::SetLabel |
( |
std::string const & |
val | ) |
|
|
inline |
◆ SetLabelMap()
| void PndSomNode::SetLabelMap |
( |
std::map< std::string, size_t > const & |
val | ) |
|
Modify the node label map. This map contains the labels of training data for which this node hase been the BMU.
◆ SetLeft()
| void PndSomNode::SetLeft |
( |
int |
val | ) |
|
|
inline |
◆ SetNeighbours()
| void PndSomNode::SetNeighbours |
( |
std::vector< std::pair< size_t, double >> const & |
val | ) |
|
Set neigbours for the current node.
- Parameters
-
| val | The vector containing the neighbour indices. |
◆ SetNodeDimension()
| void PndSomNode::SetNodeDimension |
( |
size_t |
val | ) |
|
|
inline |
◆ SetRespList()
| void PndSomNode::SetRespList |
( |
std::vector< size_t > const & |
val | ) |
|
◆ SetRight()
| void PndSomNode::SetRight |
( |
int |
val | ) |
|
|
inline |
◆ SetTop()
| void PndSomNode::SetTop |
( |
int |
val | ) |
|
|
inline |
◆ SetWeight()
| void PndSomNode::SetWeight |
( |
std::vector< float > const & |
val | ) |
|
Set weights for the current node.
- Parameters
-
| val | The vector containing the weight for the current node. |
◆ SetXPos()
| void PndSomNode::SetXPos |
( |
double |
xp | ) |
|
|
inline |
◆ SetYPos()
| void PndSomNode::SetYPos |
( |
double |
yp | ) |
|
|
inline |
The documentation for this class was generated from the following file: