CQNSquareDFLogICFSum Class Reference

#include <CQNSquareDFLogICFSum.h>

Inheritance diagram for CQNSquareDFLogICFSum:

CQueryNormalizer

List of all members.

Public Member Functions

 CQNSquareDFLogICFSum (const CAcInvertedFile *inAccessor)
virtual void considerQueryFeature (const CWeightingFunction &inFeature)
virtual CQueryNormalizerclone () const


Detailed Description

CQNSQUAREDFLOGICFSUM

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.


Constructor & Destructor Documentation

CQNSquareDFLogICFSum::CQNSquareDFLogICFSum ( const CAcInvertedFile inAccessor  ) 

Definition at line 54 of file CQNSquareDFLogICFSum.cc.

Referenced by clone().

00056                         :
00057   CQueryNormalizer(inAccessor)
00058 {
00059 };


Member Function Documentation

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 }


The documentation for this class was generated from the following files:

Generated on Wed Jan 7 00:31:13 2009 for Gift by  doxygen 1.5.6