CWeighter Class

# CWeighter Class Reference

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

A weighter is a set of WeightingFunction and normalizers which are going to be used together More...

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

## Public Members

- CWeighter (CWeightingFunction* inWeightingFunction=0, CQueryNormalizer* inDocumentNormalizer=0, CQueryNormalizer* inQueryNormalizer=0)
- void init ()
- void setAccessor (CAcInvertedFile& inAccessor)
- CWeighter* clone ()
- ~CWeighter ()
- CWeightingFunction* getWeightingFunction ()
- CQueryNormalizer* getDocumentNormalizer ()
- CQueryNormalizer* getQueryNormalizer ()

## Detailed Description

A weighter is a set of WeightingFunction and normalizers which are going to be used together.

Also: The content of the weighting function factory

## CWeighter(CWeightingFunction* inWeightingFunction=0, CQueryNormalizer.html">CQueryNormalizer* inDocumentNormalizer=0, CQueryNormalizer.html">CQueryNormalizer* inQueryNormalizer=0)

constructor

## void init()

make the weighting function know who its normalizers are

## void setAccessor(CAcInvertedFile& inAccessor)

Set for all content the accessor properly and then call init.

## CWeighter* clone()

clone: clone an init-ed copy of this

## ~CWeighter()

destructor: deletes all content.

Author: Wolfgang Müller Documentation generated by muellerw@pc7170 on Son Okt 8 16:04:40 CEST 2000 | Kdoc