File heuristic_m_estimate.hpp¶
-
namespace seco
-
class IMEstimateConfig¶
- #include <heuristic_m_estimate.hpp>
Defines an interface for all classes that allow to configure a heuristic that trades off between the heuristics “Precision” and “WRA”, where the “m” parameter controls the trade-off between both heuristics. If m = 0, this heuristic is equivalent to “Precision”. As m approaches infinity, the isometrics of this heuristic become equivalent to those of “WRA”.
Subclassed by seco::MEstimateConfig
Public Functions
-
inline virtual ~IMEstimateConfig()¶
-
virtual float64 getM() const = 0¶
Returns the value of the “m” parameter.
- Returns:
The value of the “m” parameter
-
virtual IMEstimateConfig &setM(float64 m) = 0¶
Sets the value of the “m” parameter.
- Parameters:
m – The value of the “m” parameter. Must be at least 0
- Returns:
A reference to an object of type
IMEstimateConfig
that allows further configuration of the heuristic
-
inline virtual ~IMEstimateConfig()¶
-
class MEstimateConfig : public seco::IHeuristicConfig, public seco::IMEstimateConfig¶
- #include <heuristic_m_estimate.hpp>
Allows to configure a heuristic that trades off between the heuristics “Precision” and “WRA”, where the “m” parameter controls the trade-off between both heuristics. If m = 0, this heuristic is equivalent to “Precision”. As m approaches infinity, the isometrics of this heuristic become equivalent to those of “WRA”.
Public Functions
-
MEstimateConfig()¶
-
virtual float64 getM() const override¶
Returns the value of the “m” parameter.
- Returns:
The value of the “m” parameter
-
virtual IMEstimateConfig &setM(float64 m) override¶
Sets the value of the “m” parameter.
- Parameters:
m – The value of the “m” parameter. Must be at least 0
- Returns:
A reference to an object of type
IMEstimateConfig
that allows further configuration of the heuristic
-
virtual std::unique_ptr<IHeuristicFactory> createHeuristicFactory() const override¶
Creates and returns a new object of type
IHeuristicFactory
according to the specified configuration.- Returns:
An unique pointer to an object of type
IHeuristicFactory
that has been created
-
MEstimateConfig()¶
-
class IMEstimateConfig¶