Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
drwnDecisionTreeThread Class Reference
Inheritance diagram for drwnDecisionTreeThread:
drwnThreadJob

Public Member Functions

 drwnDecisionTreeThread (const set< int > &featureSet, const vector< vector< double > > &x, const vector< int > &y, const vector< double > &w, const vector< vector< int > > &sortIndex, const drwnBitArray &sampleIndex, const vector< double > &classCounts, double H, double totalWeight)
 
void operator() ()
 thread functor called by drwnThreadPool with the appropriate threadId
 

Public Attributes

int bestFeature
 
double bestScore
 
double bestSplit
 

Protected Attributes

const set< int > _featureSet
 
const vector< vector< double > > & _x
 
const vector< int > & _y
 
const vector< double > & _w
 
const vector< vector< int > > & _sortIndex
 
const drwnBitArray_sampleIndex
 
const vector< double > & _classCounts
 
const double _H
 
const double _totalWeight
 

Additional Inherited Members

- Protected Member Functions inherited from drwnThreadJob
unsigned threadId ()
 obtain the id for the thread running (or that ran) this job. The return value is guaranteed to be between 0 and numThreads. Useful for accessing a global resource without colliding with other jobs.
 
void lock ()
 acquire a lock (on all jobs in the same thread pool)
 
void unlock ()
 release the lock (on all jobs in the same thread pool)
 

The documentation for this class was generated from the following file: