Framework.h

00001 #ifndef __FRAMEWORK_
00002 #define __FRAMEWORK_
00003 
00004 #include <omp.h>
00005 
00006 #include <mkl.h>
00007 #include <ipp.h>
00008 #include <ipps.h>
00009 #include "config.h"
00010 #include "StreamOutput.h"
00011 
00012 using namespace std;
00013 
00022 class Framework
00023 {
00024 public:
00025     Framework();
00026     ~Framework();
00027 
00028     // set and get methods for the dataset type
00029     static void setDatasetType ( bool isClassification );
00030     static bool getDatasetType();
00031 
00032     // set and get methods for maxThreads
00033     static void setMaxThreads ( int n );
00034     static int getMaxThreads();
00035 
00036     // set and get methods for randomSeed
00037     static void setRandomSeed ( int n );
00038     static int getRandomSeed();
00039 
00040     // set and get methods for framework mode (train(0), predict(1), blend(2))
00041     static void setFrameworkMode ( int mode );
00042     static int getFrameworkMode();
00043 
00044     // set and get methods for additional run parameter on startup
00045     static void setAdditionalStartupParameter ( char* s );
00046     static int getAdditionalStartupParameter();
00047 
00048     // date conversions
00049     static uint convertDateToInt(uint day, uint month, uint year, uint hour, uint minute, uint second);
00050     static void convertIntToDate(uint date, uint &day, uint &month, uint &year, uint &hour, uint &minute, uint &second, uint &weekday);
00051     
00052 private:
00053 
00054     static bool m_isClassificationDataset;
00055     static int m_maxThreads;
00056     static int m_randomSeed;
00057     static int m_frameworkMode;
00058     static int m_additionalStartupParameter;
00059 
00060 };
00061 
00062 #endif

Generated on Tue Jan 26 09:20:58 2010 for ELF by  doxygen 1.5.8