ilarinieminen / SOM-Toolbox

GNU General Public License v2.0
120 stars 57 forks source link

problem with som_stats #23

Open gnopik opened 6 years ago

gnopik commented 6 years ago

Hi,

When I use som_stats to get statistics across clusters, it returns NaN for some clusters, although there are hits in those clusters and would be good to have numbers for them. Attached is an example with Iris data. capture capture1

I tried to correct som_stats by changing row 174 into if nargin<2 || isempty(bins) || sum(isnan(bins))>0, but it does not help.

would appreciate your help with that.