1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef VectorFeatureINCLUDE
- #define VectorFeatureINCLUDE
- #include "core/basics/Config.h"
- #include "vislearning/cbaselib/Feature.h"
- namespace OBJREC {
- class VectorFeature : public Feature
- {
- protected:
- int dimension;
-
- public:
- int feature_index;
-
-
- VectorFeature ( int _dimension, int _feature_index = 0 ) { dimension = _dimension; feature_index = _feature_index; };
-
-
- virtual ~VectorFeature();
-
- double val( const Example *example ) const;
- void explode ( FeaturePool & featurePool, bool variableWindow = true ) const;
- Feature *clone() const;
- Feature *generateFirstParameter () const;
- void restore (std::istream & is, int format = 0);
- void store (std::ostream & os, int format = 0) const;
- void clear ();
- void getStump ( int & feature_index, int & dimension ) const;
- };
- }
- #endif
|