CWeightedFeature Class

# CWeightedFeature Class Reference

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

This class contains a feature which is associated withtwo probabilistic weights: the probability that the feature is IMPORTANT in a given query context (positive or negative the probability that a feature is WANTED by the user More...

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

## Public Members

- TID mFeatureID
- double mCountPresentPositive
- double mCountAbsentNegative
- double mAPrioriWeight
- CWeightedFeature (TID inFeatureID=0, double inProbabilities=1, double inAPrioriWeight=1)

## Detailed Description

This class contains a feature which is associated withtwo probabilistic weights:

the probability that the feature is IMPORTANT in a given query context (positive or negative

the probability that a feature is WANTED by the user.

## TID mFeatureID

the ID of the feature, as it would be used for queries

## double mCountPresentPositive

the number of documents looked at which have

## double mCountAbsentNegative

the probability that a feature is not wanted

## double mAPrioriWeight

an a-priori weight (probably log of inverse frequency of feature)

## CWeightedFeature(TID inFeatureID=0, double inProbabilities=1, double inAPrioriWeight=1)

a default constructor which just sets the starting values.

| Kdoc