Xmipp  v3.23.11-Nereus
data_types.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Alberto Pascual
4  *
5  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20  * 02111-1307 USA
21  *
22  * All comments concerning this program package may be sent to the
23  * e-mail address 'xmipp@cnb.csic.es'
24  ***************************************************************************/
25 //-----------------------------------------------------------------------------
26 // xmippCDataTypes.h
27 //-----------------------------------------------------------------------------
28 
29 #ifndef XMIPPCDATATYPES_H
30 #define XMIPPCDATATYPES_H
31 
32 //-----------------------------------------------------------------------------
33 
34 #include <vector> // vector
35 #include <set> // set
36 #include <string> // string
37 
38 // MAXDOUBLE
39 #include <limits.h>
40 #ifndef __CYGWIN__
41 #ifndef __APPLE__
42 #include <values.h>
43 #endif
44 #endif
45 
46 #ifndef MAXFLOAT
47 #define MAXFLOAT (float)1e38
48 #endif//MAXFLOAT
49 
50 #ifndef MAXDOUBLE
51 #define MAXDOUBLE (double)1.79769313486231570e+308
52 #endif//MAXDOUBLE
53 
54 #ifndef MAXINT
55 #define MAXINT 2147483647
56 #endif//MAXFLOAT
57 
58 #ifndef MAXZERO
59 #define MAXZERO (float)1e-20 // Useful for defining "zero precision"
60 #endif//MAXZERO
61 
62 //-----------------------------------------------------------------------------
69 //typedef double Feature;
70 //ROB in some compiles Feature classes with feature class
71 //SO I rename it as floatFeature
72 typedef float floatFeature;
73 
74 //-----------------------------------------------------------------------------
75 
79 typedef std::string Label;
80 
81 //-----------------------------------------------------------------------------
82 
86 typedef std::vector<floatFeature> FeatureVector;
87 
88 //-----------------------------------------------------------------------------
89 
93 typedef std::set<floatFeature, std::less<floatFeature> > FeatureSet;
95 
96 //-----------------------------------------------------------------------------
97 
98 #endif//XMIPPCDATATYPES_H
std::string Label
Definition: data_types.h:79
float floatFeature
Definition: data_types.h:72
std::set< floatFeature, std::less< floatFeature > > FeatureSet
Definition: data_types.h:93
std::vector< floatFeature > FeatureVector
Definition: data_types.h:86