Public Member Functions | Public Attributes | Protected Attributes

CNode Class Reference


Detailed Description

A CNode is an element of a CTaxonomy, which is used to describe hierarchical structure between tasks.

Definition at line 29 of file MultitaskKernelTreeNormalizer.h.

Inheritance diagram for CNode:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CNode ()
std::set< CNode * > get_path_root ()
std::vector< int32_t > get_task_ids_below ()
void add_child (CNode *node)
virtual const char * get_name () const
bool is_leaf ()
int32_t getNode_id () const
void setNode_id (int32_t node_idx)

Public Attributes

float64_t beta

Protected Attributes

CNodeparent
std::vector< CNode * > children
int32_t node_id

Constructor & Destructor Documentation

CNode (  ) 

default constructor

Definition at line 37 of file MultitaskKernelTreeNormalizer.h.


Member Function Documentation

void add_child ( CNode node  ) 

add child to current node

Parameters:
node child node

Definition at line 89 of file MultitaskKernelTreeNormalizer.h.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Implements CSGObject.

Definition at line 96 of file MultitaskKernelTreeNormalizer.h.

std::set<CNode*> get_path_root (  ) 

get a list of all ancestors of this node

Returns:
set of CNodes

Definition at line 47 of file MultitaskKernelTreeNormalizer.h.

std::vector<int32_t> get_task_ids_below (  ) 

get a list of task ids at the leaves below the current node

Returns:
list of task ids

Definition at line 61 of file MultitaskKernelTreeNormalizer.h.

int32_t getNode_id (  )  const
Returns:
node id of current node

Definition at line 109 of file MultitaskKernelTreeNormalizer.h.

bool is_leaf (  ) 
Returns:
boolean indicating, whether this node is a leaf

Definition at line 102 of file MultitaskKernelTreeNormalizer.h.

void setNode_id ( int32_t  node_idx  ) 
Parameters:
node_idx node id for current node

Definition at line 115 of file MultitaskKernelTreeNormalizer.h.


Member Data Documentation

parameter of node

Definition at line 121 of file MultitaskKernelTreeNormalizer.h.

std::vector<CNode*> children [protected]

list of child nodes

Definition at line 129 of file MultitaskKernelTreeNormalizer.h.

int32_t node_id [protected]

identifier of node

Definition at line 132 of file MultitaskKernelTreeNormalizer.h.

CNode* parent [protected]

parent node

Definition at line 126 of file MultitaskKernelTreeNormalizer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation