File rule_compare_function.hpp¶
-
namespace boosting
Functions
-
static inline constexpr bool compareBoostedRuleQuality(const Quality &first, const Quality &second)¶
Returns whether the quality of a boosted rule is better than the quality of a second one.
- Parameters:
first – An object of type
Quality
that represents the quality of the first rulesecond – An object of type
Quality
that represents the quality of the second rule
- Returns:
True, if the quality of the first rule is better than the quality of the second one, false otherwise
Variables
-
static const RuleCompareFunction BOOSTED_RULE_COMPARE_FUNCTION = RuleCompareFunction(compareBoostedRuleQuality, 0.0)¶
An object of type
RuleCompareFunction
that defines the function that should be used for comparing the quality of boosted rules.
-
static inline constexpr bool compareBoostedRuleQuality(const Quality &first, const Quality &second)¶