RDCode: cEntropy.h Source File

- Main Page
- Namespaces
- Classes
- Files
- Directories

# cEntropy.h

Go to the documentation of this file.

    00001 //
    00002 //  Copyright (C) 2001,2003 greg Landrum and Rational Discovery LLC
    00003 //
    00004
    00005 // The following ifdef block is the standard way of creating macros which make exporting
    00006 // from a DLL simpler. All files within this DLL are compiled with the CENTROPY_EXPORTS
    00007 // symbol defined on the command line. this symbol should not be defined on any project
    00008 // that uses this DLL. This way any other project whose source files include this file see
    00009 // CENTROPY_API functions as being imported from a DLL, wheras this DLL sees symbols
    00010 // defined with this macro as being exported.
    00011
    00012 #ifdef WIN32
    00013 #ifdef CENTROPY_EXPORTS
    00014 #define CENTROPY_API extern "C" __declspec(dllexport)
    00015 #else
    00016 //#define CENTROPY_API extern "C" __declspec(dllimport)
    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