Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

Tree::Condition Class Reference

This class represent a decision in a decision-tree. More...

#include <condition.hh>

List of all members.

Public Member Functions

 Condition (condition_kind kind, float value, unsigned int col)
 Default Constructor.

 Condition (const Condition &copy)
 Copy Constructor.

bool match (std::vector< Data::Column * > &data, unsigned int ind)
 return true when an individual match a condition

const unsigned int get_col () const
 get variable on wich condition is applied

const condition_kind & get_kind () const
 get kind of condition

const float & get_value () const
 get value of condition

void print (std::ostream &stream) const
 print


Protected Member Functions

template<typename Type> bool Condition::_match_value (Type &value)
 return true when a value match condition


Protected Attributes

condition_kind _kind
unsigned int _col
float _value


Detailed Description

This class represent a decision in a decision-tree.

Author:
Julien LEMOINE <speedblue@debian.org>

Definition at line 47 of file condition.hh.


The documentation for this class was generated from the following files:
Generated on Tue Jul 29 15:39:09 2003 for libdatamining by doxygen 1.3.2