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

SingleRegrMergeMethod.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 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.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010  */
00011 
00012 #ifndef _SINGLEREGRMERGEMETHOD_HPP
00013 #define _SINGLEREGRMERGEMETHOD_HPP
00014 
00015 #include "Param.hpp"
00016 #include "DistMergeMethod.hpp"
00017 #include "InvFPTypes.hpp"
00018 
00019 
00021 #define MINOVERLAPDOCNUM 3 
00022 
00023 #define MINLESSDBPERCEN 0.4
00024 
00025 #define GETTOPDOCSNUM 20
00026 
00028 namespace SingleRegrMergeMethodParameter {
00029 
00031   static lemur::utility::String csDbDataBaseIndex;
00032 
00034   static void get() {
00035     csDbDataBaseIndex = lemur::api::ParamGetString("csDbDataBaseIndex","");
00036   }
00037 }
00038 
00039 namespace lemur 
00040 {
00041   namespace distrib
00042   {
00043 
00045 
00055     class SingleRegrMergeMethod : public DistMergeMethod {
00056     public:
00058       SingleRegrMergeMethod(double constA=0.714, double constB=0.2857);
00059       ~SingleRegrMergeMethod();
00060 
00065       void calcRegrParams(const lemur::api::IndexedRealVector &indexset, 
00066                           const DocScoreVector* centralscores, 
00067                           const DocScoreVector* const* scoresset);
00068 
00069     protected:
00071       virtual double score(double dbscore, double docscore) const;
00072 
00074       double parama;
00075       double paramb;
00076     };
00077   }
00078 }
00079 
00080 #endif

Generated on Tue Jun 15 11:02:55 2010 for Lemur by doxygen 1.3.4