1#ifndef FSTCRITERIONNEGATIVE_H
2#define FSTCRITERIONNEGATIVE_H
98template<
class CRITERION,
class RETURNTYPE,
class SUBSET>
113 if(!
_crit->evaluate(_result,sub))
return false;
115 notify(
"Criterion_Negative result=",result,
".");
121 virtual std::ostream&
print(std::ostream& os)
const override {os <<
"Criterion_Negative()";
return os;}
130template<
class CRITERION,
class RETURNTYPE,
class SUBSET>
133 notify(
"Criterion_Negative copy-constructor.");
CRTP mixin implementing the Clonable protocol for a concrete class.
Definition clonable.hpp:184
Returns the negative of another Criterion's result.
Definition criterion_negative.hpp:99
std::shared_ptr< CRITERION > PCriterion
shared pointer to the wrapped criterion whose result is negated
Definition criterion_negative.hpp:102
virtual std::ostream & print(std::ostream &os) const override
writes a human-readable identification of the object; base default writes nothing
Definition criterion_negative.hpp:121
Clonable_Impl< Criterion_Negative, Criterion< RETURNTYPE, SUBSET > > parent_impl
implements clone(); sharing/stateless_clone throw in Criterion
Definition criterion_negative.hpp:101
PCriterion _crit
the wrapped criterion whose evaluate() result is negated
Definition criterion_negative.hpp:126
Criterion_Negative(const PCriterion crit)
Constructs the adapter around crit, the criterion whose evaluate() result is negated.
Definition criterion_negative.hpp:105
std::shared_ptr< SUBSET > PSubset
Definition criterion_negative.hpp:103
virtual bool evaluate(RETURNTYPE &result, const PSubset sub) override
Scores the given feature subset; higher is better (FST4 searches maximize).
Definition criterion_negative.hpp:108
Defines interface for feature selection criterion classes.
FST4 specific error passing class.
The Feature Selection Toolbox 4 library: every library component – data access, criteria and classifi...
Definition data_accessor.hpp:80
void notify(const std::string msg)
Prints msg followed by a newline via syncout::print(); a no-op unless the preprocessor macro DEBUG is...
Definition global.hpp:112
std::unique_ptr< T > clone_unique(const T &src)
Definition clonable.hpp:234