Talk:Statistics package

From Octave
Revision as of 11:29, 14 November 2014 by Carandraug (talk | contribs) (reply to patch)
Jump to navigation Jump to search

confusionmat

Hi, here you have my implementation of the confusionmat function. I hope it helps someone

 function [ret] = confusionmat(v1, v2)
    values = union(unique(v1), unique(v2));
    ret = zeros(size(values), size(values));
    for i = 1:size(v1)
       i1 = find(values == v1(i));
       i2 = find(values == v2(i));
       ret(i1, i2) = ret(i1, i2) + 1;
    end
 endfunction
Hi! Thank you for the patch but we don't really use the Octave wiki as discussion forum and almost no one is following this. You really should be submitting this on Octave's patch tracker.
--carandraug (talk) 03:29, 14 November 2014 (PST)