Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

mootTypes.h

Go to the documentation of this file.
00001 /*-*- Mode: C++ -*-*/
00002 
00003 /*
00004    libmoot : moocow's part-of-speech tagging library
00005    Copyright (C) 2003-2004 by Bryan Jurish <moocow@ling.uni-potsdam.de>
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Lesser General Public
00009    License as published by the Free Software Foundation; either
00010    version 2.1 of the License, or (at your option) any later version.
00011    
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Lesser General Public License for more details.
00016    
00017    You should have received a copy of the GNU Lesser General Public
00018    License along with this library; if not, write to the Free Software
00019    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00020 */
00021 
00022 /*----------------------------------------------------------------------
00023  * Name: mootTypes.h
00024  * Author: Bryan Jurish <moocow@ling.uni-potsdam.de>
00025  * Description:
00026  *   + shared typedefs for libmoot
00027  *----------------------------------------------------------------------*/
00032 #ifndef _moot_TYPES_H
00033 #define _moot_TYPES_H
00034 
00035 #include <string>
00036 #include <map>
00037 #include <set>
00038 #include <deque>
00039 #include <mootSTLHacks.h>
00040 
00042 #ifndef MAXFLOAT
00043 # include <values.h>
00044 #endif
00045 
00046 moot_BEGIN_NAMESPACE
00047 
00048 using namespace std;
00049 
00050 #ifdef moot_STL_NAMESPACE
00051  using namespace moot_STL_NAMESPACE;
00052 #endif
00053 
00054 /*----------------------------------------------------------------------
00055  * Basic Types
00056  *----------------------------------------------------------------------*/
00057 
00058 //#define MOOT_USE_DOUBLE
00059 
00060 #ifdef MOOT_USE_DOUBLE
00061 
00062 typedef double ProbT;
00063 #else
00064 
00065 typedef float ProbT;
00066 #endif //-- MOOT_USE_DOUBLE
00067 
00069 typedef ProbT CountT;
00070 
00071 
00078 #define mootProbEpsilon  1.19209290E-06F
00079 /*
00080 #ifdef FLT_EPSILON
00081 //#define mootProbEpsilon FLT_EPSILON*10
00082 # define mootProbEpsilon  FLT_EPSILON*10
00083 #else
00084 # define mootProbEpsilon  1.19209290E-06F
00085 //#define mootProbEpsilon 1.19209290E-07F
00086 #endif
00087 */
00088 
00100 #define MOOT_PROB_NEG  -3E+38
00101 #define MOOT_PROB_ZERO -1E+38
00102 #define MOOT_PROB_ONE   0.0
00103 #define MOOT_PROB_NONE  1.0
00104 /*
00105 #ifdef FLT_MAX
00106 #  define MOOT_PROB_NEG  -FLT_MAX
00107 #  define MOOT_PROB_ZERO -1E+38
00108 #  define MOOT_PROB_ONE   0.0
00109 # else //-- !(DBL|FLT)_MAX
00110 #  define MOOT_PROB_NEG  -3E+38
00111 #  define MOOT_PROB_ZERO -1E+38
00112 #  define MOOT_PROB_ONE   0.0
00113 #endif //-- /(DBL|FLT)_MAX
00114 */
00115 
00116 moot_END_NAMESPACE
00117 
00118 #endif /* _moot_TYPES_H */

Generated on Mon Jun 27 13:05:25 2005 for libmoot by  doxygen 1.3.8-20040913