pmtk3
pmtk3 copied to clipboard
error in mutualInfoAllPairsMixed.m
From [email protected] on November 24, 2013 19:02:06
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: http://code.google.com/p/pmtk3/issues/detail?id=63