DamonMIN / pmtk3

Automatically exported from code.google.com/p/pmtk3
MIT License
0 stars 0 forks source link

error in mutualInfoAllPairsMixed.m #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. calling mutualInfoAllPairsMixed function with XD=[];

What is the expected output? What do you see instead?
Index exceeds matrix dimension error, terminating further calc

What version / revision of the product are you using? On what operating
system?
1Nov12 release

Please provide any additional information below.
The preamble in the file claims that both discrete and continuous components of 
data can be empty on input to this function. However, lines 36 and 37 reuse N 
as a second dimension for both
[DC,N]=size(data.continuous);
[DD,N]=size(data.discrete);
As a result y=zeros(DD+DC,N) will be empty matrix in XD=[]; so that at later 
point when y's elements are requested the above error pops up

Original issue reported on code.google.com by wavelet3...@gmail.com on 25 Nov 2013 at 12:02

GoogleCodeExporter commented 8 years ago
Moved to GitHub: https://github.com/probml/pmtk3/issues/63

Original comment by irosen on 4 Jan 2014 at 2:39