Frobby  0.9.5
Public Member Functions | Static Public Member Functions | List of all members
VarLabelSplit Class Reference
Inheritance diagram for VarLabelSplit:
LabelSplit SplitStrategyCommon SplitStrategy

Public Member Functions

virtual const char * getName () const
 Returns the name of the strategy. More...
 
virtual size_t getLabelSplitVariable (const Slice &slice) const
 Returns the variable to perform a label split on. More...
 
- Public Member Functions inherited from SplitStrategyCommon
virtual void getPivot (Term &pivot, Slice &slice) const
 Sets pivot to the pivot of a pivot split on slice. More...
 
virtual void getPivot (Term &pivot, Slice &slice, const TermGrader &grader) const
 Sets pivot to the pivot of a pivot split on slice. More...
 
virtual bool isPivotSplit () const
 If returns true, only call getPivot. More...
 
- Public Member Functions inherited from SplitStrategy
virtual ~SplitStrategy ()
 

Static Public Member Functions

static const char * staticGetName ()
 
- Static Public Member Functions inherited from SplitStrategy
static auto_ptr< SplitStrategycreateStrategy (const string &prefix)
 Returns the strategy whose name has the given prefix. More...
 

Additional Inherited Members

- Protected Member Functions inherited from LabelSplit
void setCounts (const Slice &slice) const
 
void setOneCounts (const Slice &slice) const
 
virtual bool isLabelSplit () const
 If returns true, only call getLabelSplitVariable. More...
 
- Protected Member Functions inherited from SplitStrategyCommon
Exponent getMedianPositiveExponentOf (Slice &slice, size_t var) const
 
size_t getBestVar (const Slice &slice) const
 
- Protected Member Functions inherited from SplitStrategy
 SplitStrategy ()
 
 SplitStrategy (const SplitStrategy &)
 
SplitStrategyoperator= (const SplitStrategy &)
 
bool operator== (const SplitStrategy &)
 
- Protected Attributes inherited from LabelSplit
Term _counts
 
Term _oneCounts
 
- Protected Attributes inherited from SplitStrategyCommon
Term coVariableForGetBestVar
 

Detailed Description

Definition at line 152 of file SplitStrategy.cpp.

Member Function Documentation

◆ getLabelSplitVariable()

virtual size_t VarLabelSplit::getLabelSplitVariable ( const Slice slice) const
inlinevirtual

Returns the variable to perform a label split on.

This method must only be called if isLabelSplit() returns true.

Reimplemented from SplitStrategyCommon.

Definition at line 162 of file SplitStrategy.cpp.

◆ getName()

virtual const char* VarLabelSplit::getName ( ) const
inlinevirtual

Returns the name of the strategy.

Implements SplitStrategy.

Definition at line 154 of file SplitStrategy.cpp.

◆ staticGetName()

static const char* VarLabelSplit::staticGetName ( )
inlinestatic

Definition at line 158 of file SplitStrategy.cpp.


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