|
Frobby 0.10.0
|


Public Member Functions | |
| virtual void | getPivot (Term &pivot, Slice &slice) const |
| virtual void | getPivot (Term &pivot, Slice &slice, const TermGrader &grader) const |
| virtual size_t | getLabelSplitVariable (const Slice &slice) const |
| virtual bool | isPivotSplit () const |
| virtual bool | isLabelSplit () const |
| Public Member Functions inherited from SplitStrategy | |
| virtual const char * | getName () const =0 |
Protected Member Functions | |
| Exponent | getMedianPositiveExponentOf (Slice &slice, size_t var) const |
| size_t | getBestVar (const Slice &slice) const |
| Protected Member Functions inherited from SplitStrategy | |
| SplitStrategy (const SplitStrategy &) | |
| SplitStrategy & | operator= (const SplitStrategy &) |
| bool | operator== (const SplitStrategy &) |
Protected Attributes | |
| Term | coVariableForGetBestVar |
Additional Inherited Members | |
| Static Public Member Functions inherited from SplitStrategy | |
| static unique_ptr< SplitStrategy > | createStrategy (const string &prefix) |
This common base class provides code that is useful for writing pivot split strategies.
|
inlinevirtual |
Returns the variable to perform a label split on.
This method must only be called if isLabelSplit() returns true.
Implements SplitStrategy.
Reimplemented in MaxLabelSplit, MinLabelSplit, and VarLabelSplit.
Sets pivot to the pivot of a pivot split on slice. The slice is not changed mathematically, but e.g. the generators may be permuted.
This method must only be called if isPivotSplit() returns true.
Implements SplitStrategy.
Reimplemented in DegreeSplit, GcdSplit, IndependencePivotSplit, MaximumSplit, MedianSplit, MinGenSplit, and MinimumSplit.
|
inlinevirtual |
Sets pivot to the pivot of a pivot split on slice. Some pivot selection strategies make use of a grading. The slice is not changed mathematically, but e.g. the generators may be permuted.
This method must only be called if isPivotSplit() returns true.
Implements SplitStrategy.
Reimplemented in DegreeSplit.
|
inlinevirtual |
If returns true, only call getLabelSplitVariable.
Implements SplitStrategy.
Reimplemented in LabelSplit.
|
inlinevirtual |