#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::PndSomNode |
( |
| ) |
|
| PndSomNode::PndSomNode |
( |
size_t |
WeightsDim | ) |
|
|
explicit |
Constructor
- Parameters
-
| WeightsDim | Dimension of the weights. |
| PndSomNode::PndSomNode |
( |
std::vector< float > const & |
weight | ) |
|
|
explicit |
Constructor
- Parameters
-
| weight | Weights of the current node. |
| 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::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::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::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. |
| virtual PndSomNode::~PndSomNode |
( |
| ) |
|
|
virtual |
| void PndSomNode::AddToRespList |
( |
size_t |
idx | ) |
|
Modify the node responsibility list
| void PndSomNode::AdjustWeights |
( |
std::vector< double > const & |
target, |
|
|
double |
LearningRate, |
|
|
double |
Influence |
|
) |
| |
|
private |
| void PndSomNode::ClearInternalStructures |
( |
| ) |
|
|
private |
| int PndSomNode::GetBottom |
( |
| ) |
const |
|
inline |
| std::string const & PndSomNode::GetLabel |
( |
| ) |
const |
|
inline |
| std::map<std::string, size_t> const& PndSomNode::GetLabelMap |
( |
| ) |
const |
| int PndSomNode::GetLeft |
( |
void |
| ) |
const |
|
inline |
| 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 318 of file PndSomNode.h.
References m_NeighbourList.
std::vector< std::pair< size_t, double > > m_NeighbourList
| size_t PndSomNode::GetNodeDimension |
( |
| ) |
const |
|
inline |
| std::vector<size_t> const& PndSomNode::GetRespoList |
( |
| ) |
const |
| int PndSomNode::GetRight |
( |
void |
| ) |
const |
|
inline |
| int PndSomNode::GetTop |
( |
| ) |
const |
|
inline |
| 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 293 of file PndSomNode.h.
References m_Weights.
std::vector< float > m_Weights
| 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 298 of file PndSomNode.h.
References m_xPos.
| double PndSomNode::GetYPos |
( |
| ) |
const |
|
inline |
| virtual void PndSomNode::InitNode |
( |
| ) |
|
|
virtual |
| void PndSomNode::ResetRespList |
( |
| ) |
|
Removes all elements from the responsibility list.
| void PndSomNode::SetBottom |
( |
int |
val | ) |
|
|
inline |
| void PndSomNode::SetLabel |
( |
std::string const & |
val | ) |
|
|
inline |
| 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.
| void PndSomNode::SetLeft |
( |
int |
val | ) |
|
|
inline |
| 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. |
| void PndSomNode::SetNodeDimension |
( |
size_t |
val | ) |
|
|
inline |
| void PndSomNode::SetRespList |
( |
std::vector< size_t > const & |
val | ) |
|
| void PndSomNode::SetRight |
( |
int |
val | ) |
|
|
inline |
| void PndSomNode::SetTop |
( |
int |
val | ) |
|
|
inline |
| 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. |
| void PndSomNode::SetXPos |
( |
double |
xp | ) |
|
|
inline |
| void PndSomNode::SetYPos |
( |
double |
yp | ) |
|
|
inline |
| int PndSomNode::m_iBottom |
|
private |
| std::string PndSomNode::m_label |
|
private |
| std::map<std::string, size_t> PndSomNode::m_labelCnts |
|
private |
| std::vector< std::pair<size_t, double> > PndSomNode::m_NeighbourList |
|
private |
| std::vector<size_t> PndSomNode::m_RespNodeIndex |
|
private |
| size_t PndSomNode::m_weightDim |
|
private |
| std::vector<float> PndSomNode::m_Weights |
|
private |
| double PndSomNode::m_xPos |
|
private |
| double PndSomNode::m_yPos |
|
private |
The documentation for this class was generated from the following file: