feature.h

Go to the documentation of this file.
00001 // Copyright 2007, Massachusetts Institute of Technology.
00002 // The use of this code is permitted for research only. There is
00003 // absolutely no warranty for this software.
00004 //
00005 // Author: John Lee (jjl@mit.edu)
00006 //
00007 #ifndef POINT_SET_FEATURE_H
00008 #define POINT_SET_FEATURE_H
00009 
00010 #include <vector>
00011 
00012 using namespace std;
00013 
00014 namespace libpmk {
00015 
00017 
00022 class Feature {
00023  public:
00025    Feature(int dim);
00026    ~Feature();
00027 
00029    int GetDim() const;
00030 
00032    float GetValue(int index) const;
00033 
00035    float GetWeight() const;
00036 
00038    float& operator[](int index);
00039 
00041    float operator[](int index) const;
00042 
00044    float SetWeight(float weight);
00045    
00046  private:
00047    float weight_;
00048    vector<float> feature_;
00049 };
00050 }  // namespace libpmk
00051 
00052 #endif  // POINT_SET_FEATURE_H

Generated on Wed May 2 11:17:12 2007 for libpmk by  doxygen 1.5.1