File talk:Gamma distribution pdf.svg

Latest comment: 12 years ago by 129.169.154.117 in topic What.

What. edit

What is this? The axes aren't labeled, the description is a bunch of code (without even specifying the language), and there isn't a caption in the article it's used in. Could someone add a description (somewhere) of what this graph means? Or is it intended to be purely decorative?
--Qwerty0 (talk) 02:07, 4 October 2011 (UTC)Reply

in MATLAB:

       close all;
       a = [2 2 2 1 0.5];%theta
       b = [1 2 3 5 9];  %k
       x = linspace(0,20,100);
       y = NaN(length(a), length(x));
       for i = 1: length(a)
           y(i,:) = gampdf(a(i),b(i),x);
       end
       plot(x,y, 'linewidth',3);grid on;ylim([0 0.5]);
       legend(num2str([b ;a]'));  — Preceding unsigned comment added by 129.169.154.117 (talk) 18:20, 1 February 2012 (UTC)Reply