|
|
void | finishInit () |
| | finish the initialisation phase make the weighting function know who its normalizers are
|
| |
| | CQInvertedFile (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) |
| | New constructor, taking as parameter the algorithm structure, which contains all the algorithm configuration. More...
|
| |
| | ~CQInvertedFile () |
| | destructor More...
|
| |
| virtual bool | setAlgorithm (CAlgorithm &inAlgorithm) |
| | set the Algorithm. More...
|
| |
| virtual CIDRelevanceLevelPairList * | fastQuery (const CXMLElement &inQuery, int inNumberOfInterestingImages, double inDifferenceToBest) |
| | a query which returns ID/RelevanceLevel pairs instead of instead of URL/RelevanceLevel pairs; this is faster for merging tasks (to explain the name) queries for URLs are answered by query (in herited) More...
|
| |
| 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. More...
|
| |
| double | DIDToScore (TID inDID, const CWeightingFunctionPointerHash &inQuery) const |
| | Returns the score for one image in the query. More...
|
| |
| double | URLToScore (const string &inURL, const CWeightingFunctionPointerHash &inQuery) const |
| | Returns the score for one image in the query. More...
|
| |
|
double | FeatureListToScore (TID inDID, const CDocumentFrequencyList &inFeatureList, const CWeightingFunctionPointerHash &inQuery) const |
| | Turns the featurelist of a document into a score.
|
| |
|
void | buildNormalizedQueryHash (const CRelevanceLevel &inQuery, CWeightingFunctionPointerHash &outQueryFeatureWeighters) const |
| |
| void | activateBlockingFeatures () |
| | activateBlockingFeatures - sets the variable to block groups of features More...
|
| |
| void | releaseBlockingFeatures () |
| | releaseBlockingFeatures - this turns off the blocking of features More...
|
| |
| bool | featuresBlocked () const |
| | featuresBlocked - returns true if the features are blocked More...
|
| |
| void | blockFeatureGroup (const int featureNumber) |
| | blockFeatureGroup - this blocks one special group of features More...
|
| |
| void | unblockFeatureGroup (const int featureNumber) |
| | unblockFeatureGroup - this releases the blocking of one feature group More...
|
| |
| bool | isBlocked (const int featureNumber) const |
| | isBlocked - returns true if the feature is blocked and false if not More...
|
| |
| void | releaseAllPrunings () |
| | sets back all the variables for the pruning More...
|
| |
| void | useFeaturePruning (double percentage) |
| | activates the feature pruning with evaluating a certain percentage of the features More...
|
| |
| void | releaseFeaturePruning () |
| | set the variables back to its normal status More...
|
| |
| void | useTimePruning (double inTimeCutoffPoint) |
| | activates the time pruning with the give cuOffPoint More...
|
| |
| void | releaseTimePruning () |
| | releases the timePruning More...
|
| |
| void | useScoreBoardPruning (double inCutAfterFraction, double inReduceToFactor) |
| | creates one entry in the scoreboardPruning More...
|
| |
| void | releaseScoreBoardPruning () |
| | releases all the settings for the ScorboardPruning More...
|
| |
| void | useEvaluateAfterPruning () |
| | activates the evaluation after the scoreboardPruning More...
|
| |
| void | releaseEvaluateAfterPruning () |
| | releases the evaluation after the scoreboard pruning More...
|
| |
|
CWeighter & | getWeighter () |
| | For FerDeLance queries.
|
| |
| | CQuery () |
| | default constructor More...
|
| |
| virtual | ~CQuery () |
| | destructor More...
|
| |
| | CQuery (CAccessorAdminCollection &inAccessorAdminCollection, CAlgorithm &inAlgorithm) |
| | this constructor takes all the information ANY CQuery needs to configure itself. More...
|
| |
| void | addChild (CQuery *inChild, double inWeight=1) |
| | adding a child to this. More...
|
| |
| virtual CXMLElement * | query (const CXMLElement &inQuery) |
| | do a query More...
|
| |
| virtual CXMLElement * | getRandomImages (int inNumberOfInterestingImages) const |
| | get some random images (handed through to accessor) More...
|
| |
| virtual CIDRelevanceLevelPairList * | getRandomIDs (int inNumberOfInterestingImages) const |
| | get some random images (handed through to accessor) More...
|
| |
| virtual list< TID > * | getAllIDs () const |
| | get the IDs of all images (handed through to accessor) More...
|
| |
| virtual list< CAccessorElement > * | getAllAccessorElements () const |
| | get the IDs of all images (handed through to accessor) More...
|
| |
| const CAlgorithm & | getAlgorithm () const |
| | get the Algorithm. More...
|
| |
|
void | check () const |
| | This function checks the magic number of this and asserts to zero, if something is wrong, if things are ok, this function keeps quiet.
|
| |
|
void | checkNPrint () const |
| | as check(), but it also prints a small message to cout, saying that the check worked.
|
| |
|
| CMagic () |
| | sets the magic number to 42
|
| |
|
| ~CMagic () |
| | sets the magic number to another value (36)
|
| |
|
| double | keepScore (CScoreBoard &inoutScoreBoard, const CWeightingFunctionPointerList &inFeatures, bool lPositive) const |
| | calculates the score for all the images based on a list of features More...
|
| |
| double | keepScorePruning (CScoreBoard &inoutScoreBoard, const CWeightingFunctionPointerList &inFeatures, bool inPositive, int inDesiredNumberOfDocuments) const |
| | calculates the results for the images using some sort of pruning More...
|
| |
| void | buildQueryHash (CRelevanceLevelList &inQuery, CWeightingFunctionPointerHash &outQueryFeatureWeighters) const |
| | creates a list of all the features which are in one or more of the query images should be replaced by a version which operates on IDs not URLs More...
|
| |
| void | buildNormalizedQueryList (double inPositiveRelevanceSum, double inNegativeRelevanceSum, CWeightingFunctionPointerHash &inQFW, CWeightingFunctionPointerList &outQFW) const |
| | Building a list of normalized WF from a hash of Weighting functions. More...
|
| |
| void | buildNormalizedQueryHash (double inPositiveRelevanceSum, double inNegativeRelevanceSum, CWeightingFunctionPointerHash &inQFW) const |
| | Building a list of normalized WF from a hash of Weighting functions. More...
|
| |
| void | init () |
| | Initializer, used by both construcors. More...
|
| |
The Query manager for Queries on inverted Files.