00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef COTINDEX_H
00025 #define COTINDEX_H
00026
00027 #include "SortedSubIndex.tcc"
00028 #include "Triplef_tfd.h"
00029 #include "ElementFloatIndex.tcc"
00030 #include "FileName.h"
00031 #include "CSCTriple_matrix.tcc"
00032
00033
00053 class CotIndex : public ElementFloatIndex<SortedSubIndex<WordSubIndex> > {
00054 public:
00055
00057 CotIndex(int totalWords, BlockStats *stats,
00058 SortedSubIndex<WordSubIndex> *index,
00059 FileName *fileName);
00060 ~CotIndex(void);
00061
00063 bool calculateRow(int currentRealWord);
00064
00066 int listRealPosition(int position);
00067
00069 int indexRealPosition(int position);
00070
00071 private:
00072 Quantise *createQuantiser(float lower, float upper);
00073
00074 CSCTriple_Matrix<TRIPLET> *_cscIndex;
00075 };
00076
00077 #endif