CDocumentNormalizer Class

# CDocumentNormalizer 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/CDocumentNormalizer.h>`

## Public Members

- CDocumentNormalizer (const CInvertedFileAccessor* inAccessor)
- virtual double getValue ()
- virtual void considerDocumentFeature (const CDocumentFrequencyElement& inFeature, const CWeightingFunction& inFunction)
- void considerQueryFeature (const CWeightingFunction& inFeature)
- virtual CDocumentNormalizer* constructNew ()

## Protected Members

- const CInvertedFileAccessor* 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 (ADI) it needs to know the accessor.

## virtual double getValue()

Translating in the end the information into a normalizing value

## virtual void considerDocumentFeature(const CDocumentFrequencyElement& inFeature, const CWeightingFunction& inFunction)

Considers a document feature

## void considerQueryFeature(const CWeightingFunction& inFeature)

Considers a query feature (calls considerDocumentFeature)

| Kdoc