Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

CLUS::BinaryProbabilisticSplitter Class Reference

#include <binaryprobabilisticsplitter.h>


Public Member Functions

 BinaryProbabilisticSplitter (const Vector< int > &DDomainSize, int CsplitDim)
bool GotNoData (void)
int GetCSplitDim (void)
int GetDSplitDim (void)
const Vector< int > & GetDDomainSize (void)
void InitializeSplitStatistics (void)
 Initializes the data structures used in split variable selection.

double ProbabilityLeft (const int *Dvars, const double *Cvars)
 Computes the probability to take the left branch.

void UpdateSplitStatistics (const int *Dvars, const double *Cvars, int classLabel, double probability)
bool ComputeSplitVariable (void)
double ComputeProbabilityFirstClass (void)
bool MoreSplits (double minMass, int nodeId)
void SaveToStream (ostream &out)

Protected Attributes

int dsplitDim
 the number of discrete and continuous split variables

int csplitDim
 the number of discrete and continuous split variables

double mass0
 statistics about datapoints seen

double mass
 statistics about datapoints seen

const Vector< int > & dDomainSize
 list of discrete domain sizes

int SplitVariable
 Indicates on what variable this node splits on.

double splitPoint
 split for continuous variables

double splitSTD
 split for continuous variables

Vector< double > splitSetProbability
Vector< ProbabilisticBinomialStatisticsdiscreteStatistics
 Statistics for split decision.

Vector< NormalStatisticscontinuousStatistics


Constructor & Destructor Documentation

CLUS::BinaryProbabilisticSplitter::BinaryProbabilisticSplitter const Vector< int > &  DDomainSize,
int  CsplitDim
[inline]
 

Definition at line 78 of file binaryprobabilisticsplitter.h.


Member Function Documentation

double CLUS::BinaryProbabilisticSplitter::ComputeProbabilityFirstClass void   )  [inline]
 

Definition at line 230 of file binaryprobabilisticsplitter.h.

bool CLUS::BinaryProbabilisticSplitter::ComputeSplitVariable void   )  [inline]
 

Definition at line 160 of file binaryprobabilisticsplitter.h.

int CLUS::BinaryProbabilisticSplitter::GetCSplitDim void   )  [inline]
 

Definition at line 89 of file binaryprobabilisticsplitter.h.

const Vector<int>& CLUS::BinaryProbabilisticSplitter::GetDDomainSize void   )  [inline]
 

Definition at line 99 of file binaryprobabilisticsplitter.h.

int CLUS::BinaryProbabilisticSplitter::GetDSplitDim void   )  [inline]
 

Definition at line 94 of file binaryprobabilisticsplitter.h.

bool CLUS::BinaryProbabilisticSplitter::GotNoData void   )  [inline]
 

Definition at line 84 of file binaryprobabilisticsplitter.h.

void CLUS::BinaryProbabilisticSplitter::InitializeSplitStatistics void   )  [inline]
 

Initializes the data structures used in split variable selection.

Definition at line 105 of file binaryprobabilisticsplitter.h.

bool CLUS::BinaryProbabilisticSplitter::MoreSplits double  minMass,
int  nodeId
[inline]
 

Definition at line 235 of file binaryprobabilisticsplitter.h.

double CLUS::BinaryProbabilisticSplitter::ProbabilityLeft const int *  Dvars,
const double *  Cvars
[inline]
 

Computes the probability to take the left branch.

Definition at line 120 of file binaryprobabilisticsplitter.h.

void CLUS::BinaryProbabilisticSplitter::SaveToStream ostream &  out  )  [inline]
 

Definition at line 240 of file binaryprobabilisticsplitter.h.

void CLUS::BinaryProbabilisticSplitter::UpdateSplitStatistics const int *  Dvars,
const double *  Cvars,
int  classLabel,
double  probability
[inline]
 

Definition at line 138 of file binaryprobabilisticsplitter.h.


Field Documentation

Vector<NormalStatistics> CLUS::BinaryProbabilisticSplitter::continuousStatistics [protected]
 

Definition at line 75 of file binaryprobabilisticsplitter.h.

Referenced by BinaryProbabilisticSplitter(), ComputeSplitVariable(), InitializeSplitStatistics(), and UpdateSplitStatistics().

int CLUS::BinaryProbabilisticSplitter::csplitDim [protected]
 

the number of discrete and continuous split variables

Definition at line 54 of file binaryprobabilisticsplitter.h.

Referenced by BinaryProbabilisticSplitter(), ComputeSplitVariable(), GetCSplitDim(), InitializeSplitStatistics(), and UpdateSplitStatistics().

const Vector<int>& CLUS::BinaryProbabilisticSplitter::dDomainSize [protected]
 

list of discrete domain sizes

Definition at line 60 of file binaryprobabilisticsplitter.h.

Referenced by BinaryProbabilisticSplitter(), GetDDomainSize(), and InitializeSplitStatistics().

Vector<ProbabilisticBinomialStatistics> CLUS::BinaryProbabilisticSplitter::discreteStatistics [protected]
 

Statistics for split decision.

One for each attributeXdataset If an attribute already has the shift determined keep statistics about all datasets in the location for the first dataset

Definition at line 74 of file binaryprobabilisticsplitter.h.

Referenced by BinaryProbabilisticSplitter(), ComputeSplitVariable(), InitializeSplitStatistics(), and UpdateSplitStatistics().

int CLUS::BinaryProbabilisticSplitter::dsplitDim [protected]
 

the number of discrete and continuous split variables

Definition at line 54 of file binaryprobabilisticsplitter.h.

Referenced by BinaryProbabilisticSplitter(), ComputeSplitVariable(), GetDSplitDim(), InitializeSplitStatistics(), and UpdateSplitStatistics().

double CLUS::BinaryProbabilisticSplitter::mass [protected]
 

statistics about datapoints seen

Definition at line 57 of file binaryprobabilisticsplitter.h.

Referenced by ComputeProbabilityFirstClass(), ComputeSplitVariable(), GotNoData(), InitializeSplitStatistics(), MoreSplits(), SaveToStream(), and UpdateSplitStatistics().

double CLUS::BinaryProbabilisticSplitter::mass0 [protected]
 

statistics about datapoints seen

Definition at line 57 of file binaryprobabilisticsplitter.h.

Referenced by ComputeProbabilityFirstClass(), ComputeSplitVariable(), InitializeSplitStatistics(), MoreSplits(), and UpdateSplitStatistics().

double CLUS::BinaryProbabilisticSplitter::splitPoint [protected]
 

split for continuous variables

Definition at line 66 of file binaryprobabilisticsplitter.h.

Referenced by ComputeSplitVariable(), ProbabilityLeft(), and SaveToStream().

Vector<double> CLUS::BinaryProbabilisticSplitter::splitSetProbability [protected]
 

Definition at line 68 of file binaryprobabilisticsplitter.h.

Referenced by ComputeSplitVariable(), ProbabilityLeft(), and SaveToStream().

double CLUS::BinaryProbabilisticSplitter::splitSTD [protected]
 

split for continuous variables

Definition at line 66 of file binaryprobabilisticsplitter.h.

Referenced by ComputeSplitVariable(), ProbabilityLeft(), and SaveToStream().

int CLUS::BinaryProbabilisticSplitter::SplitVariable [protected]
 

Indicates on what variable this node splits on.

Definition at line 63 of file binaryprobabilisticsplitter.h.

Referenced by ComputeSplitVariable(), ProbabilityLeft(), and SaveToStream().


The documentation for this class was generated from the following file:
Generated on Mon Jul 21 16:57:46 2003 for SECRET by doxygen 1.3.2