#include <CQNSquareDFLogICFSum.h>

Public Member Functions | |
| CQNSquareDFLogICFSum (const CAcInvertedFile *inAccessor) | |
| virtual void | considerQueryFeature (const CWeightingFunction &inFeature) |
| virtual CQueryNormalizer * | clone () const |
modification history:
HM 090399 created the documentation
: Wolfgang Müller
compiler defines used:The query normalizer for the Best Fully Weighted Method does not work yet (1.12.1998)
Definition at line 49 of file CQNSquareDFLogICFSum.h.
| CQNSquareDFLogICFSum::CQNSquareDFLogICFSum | ( | const CAcInvertedFile * | inAccessor | ) |
Definition at line 54 of file CQNSquareDFLogICFSum.cc.
Referenced by clone().
00056 : 00057 CQueryNormalizer(inAccessor) 00058 { 00059 };
| void CQNSquareDFLogICFSum::considerQueryFeature | ( | const CWeightingFunction & | inFeature | ) | [virtual] |
Considers a feature
Reimplemented from CQueryNormalizer.
Definition at line 74 of file CQNSquareDFLogICFSum.cc.
References CAcInvertedFile::FeatureToCollectionFrequency(), CWeightingFunction::getID(), CWeightingFunction::getTermFrequency(), CQueryNormalizer::mAccessor, and CQueryNormalizer::mValue.
00075 { 00076 00077 double lICF=-log(mAccessor->FeatureToCollectionFrequency(inFeature.getID())); 00078 00079 double lSummand=inFeature.getTermFrequency()*lICF; 00080 00081 mValue+=lSummand*lSummand; 00082 };
| CQueryNormalizer * CQNSquareDFLogICFSum::clone | ( | ) | const [virtual] |
returning a copy of this
Reimplemented from CQueryNormalizer.
Definition at line 98 of file CQNSquareDFLogICFSum.cc.
References CQNSquareDFLogICFSum().
00098 { 00099 return new CQNSquareDFLogICFSum(*this); 00100 }
1.5.6