Talk:Statistics package: Difference between revisions

Add topic
Active discussions
(confusionmat)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== confusionmat ==
Hi, here you have my implementation of the confusionmat function.
Hi, here you have my implementation of the confusionmat function.
I hope it helps someone
I hope it helps someone


function [ret] = confusionmat(v1, v2)
  function [ret] = confusionmat(v1, v2)
  values = union(unique(v1), unique(v2));
    values = union(unique(v1), unique(v2));
  ret = zeros(size(values), size(values));
    ret = zeros(size(values), size(values));
  for i = 1:size(v1)
    for i = 1:size(v1)
      i1 = find(values == v1(i));
        i1 = find(values == v1(i));
      i2 = find(values == v2(i));
        i2 = find(values == v2(i));
      ret(i1, i2) = ret(i1, i2) + 1;
        ret(i1, i2) = ret(i1, i2) + 1;
  end
    end
endfunction
  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 [https://savannah.gnu.org/patch/?func=additem&group=octave patch tracker].
: --[[User:Carandraug|carandraug]] ([[User talk:Carandraug|talk]]) 03:29, 14 November 2014 (PST)
 
== Octave 3.6 ==
 
Thanks for working on this very useful package! I'm still on octave 3.6.4 (fedora 20); statistics 1.2.3 requires Octave (>= 3.6.1) io (>= 1.0.18) but io 2 requires octave 3.8. Is io-1.2.5.tar.gz (the latest 1.x) the best choice to satisfy the dependency? [[Special:Contributions/93.50.129.38|93.50.129.38]] 03:46, 7 March 2015 (PST)
 
: Please use the help mailing list if you require help. No one follows the discussion/talk page of the Octave wiki. --[[User:Carandraug|carandraug]] ([[User talk:Carandraug|talk]]) 04:21, 10 March 2015 (PDT)

Latest revision as of 11:21, 10 March 2015

confusionmatEdit

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)

Octave 3.6Edit

Thanks for working on this very useful package! I'm still on octave 3.6.4 (fedora 20); statistics 1.2.3 requires Octave (>= 3.6.1) io (>= 1.0.18) but io 2 requires octave 3.8. Is io-1.2.5.tar.gz (the latest 1.x) the best choice to satisfy the dependency? 93.50.129.38 03:46, 7 March 2015 (PST)

Please use the help mailing list if you require help. No one follows the discussion/talk page of the Octave wiki. --carandraug (talk) 04:21, 10 March 2015 (PDT)
Return to "Statistics package" page.