00001 #ifndef _theplu_yat_classifier_inputranker_
00002 #define _theplu_yat_classifier_inputranker_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <vector>
00027
00028 namespace theplu {
00029 namespace yat {
00030 namespace statistics {
00031 class Score;
00032 }
00033 namespace classifier {
00034
00035 class MatrixLookup;
00036 class MatrixLookupWeighted;
00037 class Target;
00038
00043 class InputRanker
00044 {
00045
00046 public:
00052 InputRanker(const MatrixLookup&, const Target&, const statistics::Score&);
00053
00059 InputRanker(const MatrixLookupWeighted&, const Target&,
00060 const statistics::Score&);
00061
00066 const std::vector<size_t>& id(void) const;
00067
00072 const std::vector<size_t>& rank(void) const;
00073
00082 double score(size_t rank) const;
00083
00084 private:
00085 std::vector<size_t> id_;
00086 std::vector<size_t> rank_;
00087 std::vector<double> score_;
00088 };
00089
00090
00091 }}}
00092
00093 #endif