File: cEntropy.h

package info (click to toggle)
rdkit 201203-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 37,840 kB
  • sloc: cpp: 93,902; python: 51,897; java: 5,192; ansic: 3,497; xml: 2,499; sql: 1,641; yacc: 1,518; lex: 1,076; makefile: 325; fortran: 183; sh: 153; cs: 51
file content (37 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  Copyright (C) 2001,2003 greg Landrum and Rational Discovery LLC
//

// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the CENTROPY_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// CENTROPY_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.

#ifdef WIN32
#ifdef CENTROPY_EXPORTS
#define CENTROPY_API extern "C" __declspec(dllexport)
#else
//#define CENTROPY_API extern "C" __declspec(dllimport)
#define CENTROPY_API extern "C"
#endif
#include <windows.h>
#else  // WIN32
#define CENTROPY_API extern "C"
#endif

CENTROPY_API void initcEntropy(void);
template<class T> extern double InfoEntropy(long int *,long int);
CENTROPY_API double InfoGain(long int *,long int,long int);


#ifdef _DEBUG
#ifndef BOOST_PYTHON_DEBUG
#undef _DEBUG
#endif
#include <Python.h>
#define _DEBUG
#else
#include <Python.h>
#endif