#include <CQueryNormalizer.h>

Public Member Functions | |
| CQueryNormalizer (const CAcInvertedFile *inAccessor=0) | |
| void | setAccessor (const CAcInvertedFile *inAccessor) |
| virtual void | reset () |
| virtual double | getValue () const |
| Translating the information into a normalizing value in the end. | |
| virtual void | considerQueryFeature (const CWeightingFunction &inFeature) |
| Considers a feature. | |
| virtual CQueryNormalizer * | clone () const |
Protected Attributes | |
| double | mValue |
| const CAcInvertedFile * | mAccessor |
For getting additional information it needs to know the accessor.
Definition at line 55 of file CQueryNormalizer.h.
| CQueryNormalizer::CQueryNormalizer | ( | const CAcInvertedFile * | inAccessor = 0 |
) |
| void CQueryNormalizer::setAccessor | ( | const CAcInvertedFile * | inAccessor | ) |
Definition at line 72 of file CQueryNormalizer.cc.
References mAccessor.
Referenced by CWeighter::setAccessor().
00072 { 00073 mAccessor= 00074 inAccessor; 00075 };
| void CQueryNormalizer::reset | ( | ) | [virtual] |
Definition at line 90 of file CQueryNormalizer.cc.
References mValue.
Referenced by CQueryNormalizer().
00090 { 00091 mValue=0; 00092 }
| double CQueryNormalizer::getValue | ( | ) | const [virtual] |
Translating the information into a normalizing value in the end.
Reimplemented in CQNNoNormalization.
Definition at line 107 of file CQueryNormalizer.cc.
References mValue.
Referenced by CWeightingFunction::applyOnThis(), and CWFBestFullyWeighted::subApply().
00107 { 00108 return mValue; 00109 }
| void CQueryNormalizer::considerQueryFeature | ( | const CWeightingFunction & | inFeature | ) | [virtual] |
Considers a feature.
Reimplemented in CQNBestFullyWeighted, CQNEuclideanLengthSquare, CQNMaxDocumentFrequency, CQNNoNormalization, and CQNSquareDFLogICFSum.
Definition at line 124 of file CQueryNormalizer.cc.
References THIS_SHOULD_NEVER_BE_CALLED.
Referenced by CQInvertedFile::buildNormalizedQueryHash().
00125 { 00126 #define THIS_SHOULD_NEVER_BE_CALLED 0 00127 assert(THIS_SHOULD_NEVER_BE_CALLED); 00128 };
| CQueryNormalizer * CQueryNormalizer::clone | ( | ) | const [virtual] |
clone: This permits us to store completely preconfiguered normalizers and use them when needed
modification history
Reimplemented in CQNBestFullyWeighted, CQNEuclideanLengthSquare, CQNMaxDocumentFrequency, CQNNoNormalization, and CQNSquareDFLogICFSum.
Definition at line 95 of file CQNBestFullyWeighted.cc.
Referenced by CWeighter::clone().
00095 { 00096 return new CQNBestFullyWeighted(*this); 00097 }
double CQueryNormalizer::mValue [protected] |
Definition at line 65 of file CQueryNormalizer.h.
Referenced by CQNSquareDFLogICFSum::considerQueryFeature(), CQNMaxDocumentFrequency::considerQueryFeature(), CQNEuclideanLengthSquare::considerQueryFeature(), CQNBestFullyWeighted::considerQueryFeature(), getValue(), and reset().
const CAcInvertedFile* CQueryNormalizer::mAccessor [protected] |
Definition at line 72 of file CQueryNormalizer.h.
Referenced by CQNSquareDFLogICFSum::considerQueryFeature(), and setAccessor().
1.5.6