The GCC is required. Download latest version from https://github.com/minepy/minepy/releases. No installation is required. See c_api
and cpp_api
on how to include and compile the library in your C/C++ software.
Requirements:
- GCC
- Python 2.7, 3.X
- NumPy >= 1.3.0 (with header files)
We suggest to install the GCC and the Python headers through the package manager (e.g. on Ubuntu/Debian):
sudo apt-get update
sudo apt-get install build-essential python-dev
Then, upgrade pip and install setuptools:
pip install --upgrade pip
pip install 'setuptools >=14.0'
Finally, install minepy:
sudo pip install minepy
In Mac OS X, we recommend to install Python from Homebrew:
Install gcc:
brew install gcc
Finally, install minepy:
sudo pip install minepy
$ cd tests $ python minepy_test.py test_const (__main__.TestFunctions) ... ok test_exp (__main__.TestFunctions) ... ok test_linear (__main__.TestFunctions) ... ok test_sine (__main__.TestFunctions) ... ok ---------------------------------------------------------------------- Ran 4 tests in 0.412s OK
The library works with MATLAB >= 7.3 (R2006b) since it supports 64-Bit indexing. See http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html. Download latest version from https://github.com/minepy/minepy/releases.
- Untar the file
minepy-X.Y.Z.tar.gz
(whereX.Y.Z
is the current version of minepy) - Open MATLAB
In the MATLAB "command window" go into the
minepy-X.Y.Z
folder by typing:>> cd path_to_minepy-X.Y.Z/matlab/
Build the binary MEX file by typing:
>> mex mine_mex.c ../libmine/mine.c
- Now you have the binary MEX-file in
path_to_minepy-X.Y.Z/matlab/
(mine_mex.mex*
, where * can bea64
,maci64
,w32
orw64
) - Put your MEX-file (
mine_mex.mex*
) andmine.m
in a folder on the MATLAB path. Alternatively, you can addpath_to_minepy-X.Y.Z/matlab/
selecting File > SetPath. Test the MEX-file by typing:
>> minestats = mine([1,2,3,4,5,6], [1,2,3,4,5,6])
Download latest version from https://github.com/minepy/minepy/releases.
- Untar the file
minepy-X.Y.Z.tar.gz
(whereX.Y.Z
is the current version of minepy) - Run OCTAVE
Go into the
minepy-X.Y.Z
folder by typing:octave:1> cd path_to_minepy-X.Y.Z/matlab/
Build the binary MEX-file by typing:
octave:2> mex mine_mex.c ../libmine/mine.c
- Now, you have the binary MEX-file in
path_to_minepy-X.Y.Z/matlab/
(mine_mex.mex
) - Put your MEX-file (
mine_mex.mex
) andmine.m
in a folder on the OCTAVE path. Alternatively, you can addpath_to_minepy-X.Y.Z/matlab/
in the OCTAVE startup file (http://www.gnu.org/software/octave/doc/interpreter/Startup-Files.html) Test the MEX-file by typing:
octave:3> minestats = mine([1,2,3,4,5,6], [1,2,3,4,5,6])