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

CORIMergeMethod.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 _CORIMERGEMETHOD_HPP
00013 #define _CORIMERGEMETHOD_HPP
00014 
00015 
00016 #include "DistMergeMethod.hpp"
00017 namespace lemur
00018 {
00020   namespace distrib
00021   {
00022     
00023 
00025 
00033     class CORIMergeMethod: public DistMergeMethod {
00034     public:
00035       CORIMergeMethod(double constA=0.4, double constB=1.4);
00036       ~CORIMergeMethod();
00037 
00038     protected:
00040       double score(double dbscore, double docscore) const;
00041 
00042     private:
00043       double A;    // a constant for the formula. default is 0.4
00044       double B;    // a constant for the formula. default is 1.4
00045     };
00046   }
00047 }
00048 
00049 #endif

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