Weighting Function method 2. More...
#include <CWFBestProbabilistic.h>
Public Member Functions | |
| CWFBestProbabilistic (const CAcInvertedFile *inAccessor=0, CQueryNormalizer *inQueryNormalizer=0, CQueryNormalizer *inThisNormalizer=0) | |
| virtual double | subApply (const double inDocumentFrequency, const double inNormalizingFactor) const |
| Apply this on a document frequency. | |
| virtual double | apply (const CDocumentFrequencyElement &inResultFeature) const |
| Preparing the right parameters for subApply: Apply this on another feature. | |
| CWeightingFunction * | clone () const |
| Virtual copy constructor. | |
Public Member Functions inherited from CWeightingFunction | |
| double | getQueryFactor () const |
| The query factor contains all informatio which depends only on the query. More... | |
| virtual void | preCalculate () |
| Calculate the QueryFactor. | |
| CWeightingFunction (const CAcInvertedFile *inAccessor=0, CQueryNormalizer *inQueryNormalizer=0, CQueryNormalizer *inThisNormalizer=0) | |
| Constructor: More... | |
| void | setAccessor (const CAcInvertedFile *) |
| Set the accessor (should not be needed) More... | |
| void | setNormalizers (CQueryNormalizer *inQueryNormalizer, CQueryNormalizer *inThisNormalizer) |
| Set the query normalizer (should not be needed);. More... | |
| void | setID (TID) |
| Set the ID of this feature. More... | |
| TID | getID () const |
| get the ID of this feature More... | |
| void | setRelevanceSum (double inPositiveRelevanceSum, double inNegativeRelevanceSum) |
| Setting the relevance sum, that is the sum of the absolute values of all relevance levels of all documents of the query. More... | |
| virtual void | addQueryFeature (double inRelevanceLevel, const CDocumentFrequencyElement &inQueryFeature) |
| Add a feature. More... | |
| virtual double | getTermFrequency () const |
| Giving a pseudo term frequency for normalization. More... | |
| double | applyOnThis () const |
| Preparing the right parameters for subApply: Apply this on itself. More... | |
| virtual CWeightingFunction * | constructNew (TID inID) const |
| For the "prototype pattern": Kinda virtual copy constructor: Gamma/Helm/Johnson/Vlissides p. More... | |
| virtual | ~CWeightingFunction () |
| This virtual destructor is here inorder to call the (inherited) default constructors. | |
Additional Inherited Members | |
Protected Attributes inherited from CWeightingFunction | |
| double | mPositiveRelevanceSum |
| This value depends on all the elements of the query, which have a positive user-assigned relevance. More... | |
| double | mNegativeRelevanceSum |
| This value depends on all the elements of the query, which have a negative user-assigned relevance. More... | |
| double | mPositiveTermFrequency |
| double | mNegativeTermFrequency |
| int | mFeatureDescription |
| At present the feature description is a simple integer which expresses if the feature is a histogram feature or not and if it is a texture feature or not. More... | |
| TID | mID |
| const CAcInvertedFile * | mAccessor |
| The accessor for the file on which the query is performed. | |
| CQueryNormalizer * | mQueryNormalizer |
| FIXME THERE IS A GOOD DESCRIPTION MISSING FOR THE NEXT TWO VARIABLES. | |
| CQueryNormalizer * | mThisNormalizer |
| A normalizer for apply on self. | |
| double | mQueryFactor |
| The query usually will separate into a part which is equal for all the query and a part which is to be calculated for each document. More... | |
| double | mDocumentFactor |
Weighting Function method 2.