cEntropy.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifdef WIN32
00013 #ifdef CENTROPY_EXPORTS
00014 #define CENTROPY_API extern "C" __declspec(dllexport)
00015 #else
00016
00017 #define CENTROPY_API extern "C"
00018 #endif
00019 #include <windows.h>
00020 #else // WIN32
00021 #define CENTROPY_API extern "C"
00022 #endif
00023
00024 CENTROPY_API void initcEntropy(void);
00025 template<class T> extern double InfoEntropy(long int *,long int);
00026 CENTROPY_API double InfoGain(long int *,long int,long int);
00027
00028
00029 #ifdef _DEBUG
00030 #ifndef BOOST_PYTHON_DEBUG
00031 #undef _DEBUG
00032 #endif
00033 #include <Python.h>
00034 #define _DEBUG
00035 #else
00036 #include <Python.h>
00037 #endif