48 template <
class FeatureType,
class DataSet,
class ExampleIndex>
61 std::vector<FeatureType>& features) = 0;
76 std::vector<ExampleIndex>& examples,
77 std::vector<float>& results,
78 std::vector<unsigned char>& flags)
const = 0;
92 const ExampleIndex& example,
94 unsigned char& flag)
const = 0;
104 ::std::ostream& stream)
const = 0;
Utility class interface which is used for creating and evaluating features.
virtual void evaluateFeature(const FeatureType &feature, DataSet &data_set, std::vector< ExampleIndex > &examples, std::vector< float > &results, std::vector< unsigned char > &flags) const =0
Evaluates a feature on the specified data.
virtual void createRandomFeatures(const std::size_t num_of_features, std::vector< FeatureType > &features)=0
Creates random features.
virtual void generateCodeForEvaluation(const FeatureType &feature, ::std::ostream &stream) const =0
Generates evaluation code for the specified feature and writes it to the specified stream.
virtual void evaluateFeature(const FeatureType &feature, DataSet &data_set, const ExampleIndex &example, float &result, unsigned char &flag) const =0
Evaluates a feature on the specified data.
virtual ~FeatureHandler()=default
Destructor.
Define standard C methods and C++ classes that are common to all methods.