CQInvertedFile Class Reference
[CADIHash.h Index] [CADIHash.h Hierarchy]
The Query manager for Queries on inverted Files More...
#include <>
Inherits: CQuery
Public Members
- void finishInit ()
- CQInvertedFile (CAccessorCollection& inAccessorCollection, CAlgorithm& inAlgorithm)
- virtual bool setAlgorithm (CAlgorithm& inAlgorithm)
- virtual CIDRelevanceLevelPairList* fastQuery (const CXMLElement& inQuery, int inNumberOfInterestingImages,
double inDifferenceToBest)
- virtual CIDRelevanceLevelPairList* fastQueryByFeature (const CWeightingFunctionPointerList& inQuery, int inNumberOfInterestingImages,
double inDifferenceToBest)
- double DIDToScore (TID inDID, const CWeightingFunctionPointerHash& inQuery)
- double URLToScore (const string& inURL, const CWeightingFunctionPointerHash& inQuery)
- double FeatureListToScore (TID inDID, const CDocumentFrequencyList& inFeatureList,
const CWeightingFunctionPointerHash& inQuery)
- void buildNormalizedQueryHash (const CRelevanceLevel& inQuery, CWeightingFunctionPointerHash&
outQueryFeatureWeighters)
- bool mBlockingOn
- void activateBlockingFeatures ()
- void releaseBlockingFeatures ()
- bool featuresBlocked ()
- void blockFeatureGroup (const int featureNumber)
- void unblockFeatureGroup (const int featureNumber)
- bool isBlocked (const int featureNumber)
- bool mPruningUsed
- bool mScoreBoardPruningUsed
- double stopAfterFeature
- double reduceTo
- int mNumberofUsedScoreBoardPrunings
- bool mFeaturePruningUsed
- double mPercentageofFeatures
- bool mTimePruningUsed
- double mStoppingTime
- bool mEvaluateAfterPruning
- void releaseAllPrunings ()
- void useFeaturePruning (double percentage)
- void releaseFeaturePruning ()
- void useTimePruning (double inTimeCutoffPoint)
- void releaseTimePruning ()
- void useScoreBoardPruning (double inCutAfterFraction, double inReduceToFactor)
- void releaseScoreBoardPruning ()
- void useEvaluateAfterPruning ()
- void releaseEvaluateAfterPruning ()
- CWeighter& getWeighter ()
Protected Members
- int mModulo
- int mModuloClass
- CWeighterFactory mWeighterFactory
- mQueryFeatureWeighters
- double keepScore (CScoreBoard& inoutScoreBoard, const CWeightingFunctionPointerList& inFeatures,
bool lPositive)
- double keepScorePruning (CScoreBoard& inoutScoreBoard, const CWeightingFunctionPointerList& inFeatures,
bool inPositive,
int inDesiredNumberOfDocuments)
- void buildQueryHash (CRelevanceLevelList& inQuery, CWeightingFunctionPointerHash&
outQueryFeatureWeighters)
- void buildNormalizedQueryList (double inPositiveRelevanceSum, double inNegativeRelevanceSum,
CWeightingFunctionPointerHash&
inQFW,
CWeightingFunctionPointerList&
outQFW)
- void buildNormalizedQueryHash (double inPositiveRelevanceSum, double inNegativeRelevanceSum,
CWeightingFunctionPointerHash&
inQFW)
- void init ()
finish the initialisation phase
make the weighting function know who its normalizers are
New constructor, taking as parameter the
algorithm structure, which contains all
the algorithm configuration
set the Algorithm.
same scheme as in setCollection
instead of URL/RelevanceLevel pairs;
this is faster for merging tasks (to explain the name)
queries for URLs are answered by query (in herited)
virtual CIDRelevanceLevelPairList* fastQueryByFeature(const CWeightingFunctionPointerList& inQuery, int inNumberOfInterestingImages,
double inDifferenceToBest)
Assuming that a correct CWeightingFunctionPointerHash has been built by fastQuery
(or another function), this function will do the rest
Returns the score for one image in the query
Returns the score for one image in the query
Turns the featurelist of a document into a score.
activateBlockingFeatures - sets the variable to block groups of features
releaseBlockingFeatures - this turns off the blocking of features
featuresBlocked - returns true if the features are blocked
blockFeatureGroup - this blocks one special group of features
unblockFeatureGroup - this releases the blocking of one feature group
bool isBlocked(const int featureNumber)
isBlocked - returns true if the feature is blocked and false if not
Shows if any pruning is used
true if the scoreboardis Pruned
reduce the scoreboard to a factor of the number of images you
want to retrieve
@Author Henning Müller
@Author Henning Müller
@Author Henning Müller
sets back all the variables for the pruning
@Author Henning Müller
activates the feature pruning with evaluating
a certain percentage of the features
@Author Henning Müller
set the variables back to its normal status
@Author Henning Müller
void useTimePruning(double inTimeCutoffPoint)
activates the time pruning with the give cuOffPoint
@Author Henning Müller
releases the timePruning
@Author Henning Müller
void useScoreBoardPruning(double inCutAfterFraction, double inReduceToFactor)
creates one entry in the scoreboardPruning
@Author Henning Müller
releases all the settings for the ScorboardPruning
@Author Henning Müller
activates the evaluation after the scoreboardPruning
@Author Henning Müller
releases the evaluation after the scoreboard pruning
@Author Henning Müller
For FerDeLance queries
You can choose to use only every lModulo-th feature
Every lModulo-th feature, starting at lModuloClass
This is a factory for weighters.
With this we can find the weighters
object of this type to have a list of the features with the weights
double keepScore(CScoreBoard& inoutScoreBoard, const CWeightingFunctionPointerList& inFeatures,
bool lPositive)
calculates the score for all the images based on a list of features
double keepScorePruning(CScoreBoard& inoutScoreBoard, const CWeightingFunctionPointerList& inFeatures,
bool inPositive,
int inDesiredNumberOfDocuments)
calculates the results for the images using some sort of pruning
are in one or more of the query images
should be replaced by a version which operates on IDs not URLs
void buildNormalizedQueryList(double inPositiveRelevanceSum, double inNegativeRelevanceSum,
CWeightingFunctionPointerHash&
inQFW,
CWeightingFunctionPointerList&
outQFW)
Building a list of normalized WF from a hash of Weighting functions
Building a list of normalized WF from a hash of Weighting functions
Initializer, used by both construcors
Documentation generated by muellerw@pc7170 on Son Okt 8 16:04:40 CEST 2000
|
Kdoc
|