CQueryNormalizer Class

# CQueryNormalizer Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

For normalizing weights like in Salton/Buckley we need to now all thefeatures in the query or all the features in a document More...

`#include <../libInvertedFile/include/CQueryNormalizer.h>`

## Public Members

- CQueryNormalizer (const CAcInvertedFile* inAccessor=0)
- void setAccessor (const CAcInvertedFile* inAccessor)
- virtual void reset ()
- virtual double getValue ()
- virtual void considerQueryFeature (const CWeightingFunction& inFeature)
- virtual CQueryNormalizer* clone ()

## Protected Members

- double mValue
- const CAcInvertedFile* mAccessor

## Detailed Description

For normalizing weights like in Salton/Buckley we need to now all thefeatures in the query or all the features in a document. This base class is supposed to handle both.

For getting additional information it needs to know the accessor.

## virtual double getValue()

Translating the information into a normalizing value in the end

## virtual void considerQueryFeature(const CWeightingFunction& inFeature)

Considers a feature

## virtual CQueryNormalizer* clone()

returning a copy of this

| Kdoc