Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MultiRegrMergeMethod.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2003 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.cs.cmu.edu/~lemur/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 // lsi - created
00013 
00014 #ifndef _MULTIREGRMERGEMETHOD_HPP
00015 #define _MULTIREGRMERGEMETHOD_HPP
00016 
00029 
00030 #define MINOVERLAPDOCNUM 3 
00031 
00032 #define MINLESSDBPERCEN 0.4
00033 
00034 #define MGETTOPDOCSNUM 10
00035 
00036 #include "Param.hpp"
00037 #include "DistMergeMethod.hpp"
00038 #include "InvFPTypes.hpp"
00039 
00040 
00041 namespace MultiRegrMergeMethodParameter {
00042 
00044 
00045   static String csDbDataBaseIndex;
00047 
00049   static void get() {
00050     csDbDataBaseIndex = ParamGetString("csDbDataBaseIndex","");
00051   }
00052 };
00053 
00054 
00055 class MultiRegrMergeMethod : public DistMergeMethod {
00056 public:
00058   MultiRegrMergeMethod(double constA=0.714, double constB=0.2857);
00059   ~MultiRegrMergeMethod();
00060 
00065   void mergeScoreSet(IndexedRealVector &indexset, DocScoreVector** scoreset, DocScoreVector &results);
00066   void calcRegrParams(IndexedRealVector &indexset, DocScoreVector* centralscores, DocScoreVector** scoresset);
00067 
00068 protected:
00070   virtual double score(double dbscore, double docscore,int dbIndex);
00071   virtual double score(double dbscore, double docscore);
00072 
00074   double *parama;
00075   double *paramb;
00076   double defParamA;
00077   double defParamB;
00078 };
00079 
00080 #endif

Generated on Fri Feb 6 07:11:48 2004 for LEMUR by doxygen1.2.16