[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
|
NodeBase | ![]() |
#include <vigra/random_forest/rf_nodeproxy.hxx>

Public Member Functions | |
| INT const & | child (Int32 l) const |
| INT & | child (Int32 l) |
| Topology_type | column_data () const |
| Topology_type | columns_begin () const |
| Topology_type | columns_end () const |
| int | columns_size () const |
| bool | data () const |
| NodeBase (NodeBase const &toCopy, T_Container_type &topology, P_Container_type ¶meter) | |
| NodeBase (int tLen, int pLen, T_Container_type &topology, P_Container_type ¶meter) | |
| NodeBase (int tLen, int pLen, NodeBase &node) | |
| NodeBase (int tLen, int pLen, T_Container_type const &topology, P_Container_type const ¶meter, INT n) | |
| NodeBase (T_Container_type const &topology, P_Container_type const ¶meter, INT n) | |
| NodeBase () | |
| INT & | parameter_addr () |
| Parameter_type | parameters_begin () const |
| Topology_type | topology_begin () const |
| INT & | typeID () |
| double & | weights () |
Static Public Attributes | |
| static T_Container_type | xrange |
This class implements common features of all nodes. Memory Structure: Int32 Array: TypeID, ParameterAddr, Child0, Child1, [ColumnData]0_ double Array: NodeWeight, [Parameters]1_
TODO: Throw away the crappy iterators and use vigra::ArrayVectorView it is not like anybody else is going to use this NodeBase class is it?
TODO: use the RF_Traits::ProblemSpec_t to specify the external parameters instead of the options.
| NodeBase | ( | ) |
Default Constructor
| NodeBase | ( | T_Container_type const & | topology, | |
| P_Container_type const & | parameter, | |||
| INT | n | |||
| ) |
create ReadOnly Base Node at position n (actual length is unknown) only common features i.e. children etc are accessible.
| NodeBase | ( | int | tLen, | |
| int | pLen, | |||
| T_Container_type const & | topology, | |||
| P_Container_type const & | parameter, | |||
| INT | n | |||
| ) |
create ReadOnly node with known length (the parameter range is valid)
create ReadOnly node with known length from existing Node
| NodeBase | ( | int | tLen, | |
| int | pLen, | |||
| T_Container_type & | topology, | |||
| P_Container_type & | parameter | |||
| ) |
create new Node at end of vector
| tLen | number of integers needed in the topolog vector | |
| pLen | number of parameters needed (this includes the node weight) | |
| topology | reference to Topology array of decision tree. | |
| parameter | reference to Parameter array of decision tree. |
| NodeBase | ( | NodeBase const & | toCopy, | |
| T_Container_type & | topology, | |||
| P_Container_type & | parameter | |||
| ) |
PseudoCopy Constructor -
Copy Node to the end of a container. Since each Node views on different data there can't be a real copy constructor (unless both objects should point to the same underlying data.
| INT const& child | ( | Int32 | l | ) | const |
where are the child nodes?
| INT& child | ( | Int32 | l | ) |
where are the child nodes?
| Topology_type column_data | ( | ) | const |
Column Range
| Topology_type columns_begin | ( | ) | const |
get the start iterator to the columns
| Topology_type columns_end | ( | ) | const |
end iterator to the columns
| int columns_size | ( | ) | const |
how many columns?
| bool data | ( | ) | const |
has the data been set? todo: throw this out - bad design
| INT& parameter_addr | ( | ) |
Where in the parameter_ array are the weights?
| Parameter_type parameters_begin | ( | ) | const |
Parameter Range
| Topology_type topology_begin | ( | ) | const |
Topology Range - gives access to the raw Topo memory the size_ member was added as a result of premature optimisation.
| INT& typeID | ( | ) |
get the node type id
| double& weights | ( | ) |
get Node Weight
NodeBase::T_Container_type xrange [static] |
if numColumns = 0 then xrange is used as split axis
|
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|