function minestats = mine(x, y, alpha, c)
% MINE Maximal Information-based Nonparametric Exploration
%
% Returns a struct containing mic, mas, mev and mcn.
%
% MINESTATS = MINE(X, Y, ALPHA, C) computes the MINE statistics
% between X and Y. X and Y must be row vectors of size n.
% Alpha is the exponent in B(n) = n^alpha and must be in (0, 1.0].
% Parameter c determines how many more clumps there will be than
% columns in every partition and must be > 0.
%
% MINESTATS = MINE(X, Y, ALPHA) computes the MINE statistics
% between X and Y. Default value of c is 15.
%
% MINESTATS = MINE(X, Y) computes the MINE statistics
% between X and Y. Default value of alpha is 0.6 and default value
% of c is 15.
%
The example is located in examples/matlab_example.m.
% create x = [0, 0.001, 0.002, ..., 0.998, 0.999, 1]
x = linspace(0, 1, 1001);
% y = sin(10 * pi * x) + x
y = sin(10 * pi * x) + x;
% compute the mine statistics
minestats = mine(x, y);
% print the minestats structure
minestats
minestats =
mic: 1
mas: 0.7281
mev: 1
mcn: 4.5850