Although this is a fast routine, the Mutual Information value for small length vector does not seem to be very reliable when using the same vector as X and Y.
Trying the following small test code ...
clc
clear all
close all
nN = 5000;
fMIacc = zeros(1, nN);
figure
hold on
for i = 1:nN
fVec = rand(1,i);
fMI = mutualinfo(fVec,fVec);
fMIacc(1, i) = fMI;
end
plot(fMIacc)
axis([-100 nN+1 0 1.5])
the mex compile properly (with Microsoft Visual C++ 2008 Express in C:\Program Files\Microsoft Visual Studio 9.0) but when running the HandExample script I get the following error:
'What() is:Access violation - no RTTI data!'
Any ideas how to fix this ?
Brahim
16 Nov 2010
FINDSEQ
Find sequences of repeated (adjacent/consecutive) numeric values. NaNs and Infs are supported.
Author: Oleg Komarov