Fitxategi:Linear least squares.svg

Orriaren edukia ez da onartzen beste hizkuntza batzuetan.
Wikipedia, Entziklopedia askea

Bereizmen handikoa(SVG fitxategia, nominaldi 512 × 621 pixel, fitxategiaren tamaina: 77 KB)

Fitxategi hau Wikimedia Commonsekoa da. Hango deskribapen orriko informazioa behean duzu.
Commons gordailu bat da, lizentzia askea duten multimedia fitxategiena. Lagun dezakezu.

Fitxategi hau Wikimedia Commonsekoa da
Deskribapena Illustration of linear least squares.
Data (UTC)
Jatorria self-made with MATLAB, tweaked in Inkscape.
Egilea Oleg Alexandrov
Lizentzia
(Fitxategi hau berrerabiltzen)
Public domain Nik, lan honen egile eskubideen jabeak, lan hau domeinu publikoan jartzen dut. Mundu osoan du eragina honek.
Estatu batzuetan beharbada hori ez da legez posible izango. Halakoetan:
Edonori ematen diot lan hau edozertarako erabiltzeko eskubidea, inolako baldintzarik gabe, legeak nahitaez ezarritako baldintzak izan ezik.
SVG genesis
InfoField
 
SVG irudi honen iturburu kodea baliozkoa.
 
Fitxategi hau (bektore-irudia) hau MATLAB-ekin sortu da .
Iturburu kode
InfoField

MATLAB code

% Illustration of linear least squares.
function main()
   
   % KSmrq's colors
   red    = [0.867 0.06 0.14];
   blue   = [0, 129, 205]/256;
   green  = [0, 200,  70]/256;
   yellow = [254, 194,   0]/256;
   white = 0.99*[1, 1, 1];
   gray = 0.2*white;
   
% Set up the grid and other parameters
   N = 100;
   A = -2.2; B = 2; 
   X = linspace(A, B, N);
   C=-4; D = 4;
   
   % Set up the figure
   lw = 4; % linewidth
   fs = 18; % font size
   figure(1); clf; hold on;
   set(gca, 'fontsize', fs);
   set(gca, 'linewidth', lw/2.5)
   hold on; grid on;

   % random numbers
   a = 1.1; b = 3.5; c = 1.4;
   M = 50;
   XX=linspace(A+0.3, B-0.3, M+1);
   Xr = 0*(1:M);
   Yr = Xr;
   for i=1:M
      r=rand(1);
      Xr(i) = XX(i)*r+XX(i+1)*(1-r);
      Yr(i) = a*Xr(i) + b + c*0.4*erfinv(2*rand(1) - 1);
   end

   myrad = 0.05;
   for i=1:length(Xr)
      ball(Xr(i), Yr(i), myrad, red);
   end


   % least squares fitting
   Yr = Yr';
   Mat = [Xr' (0*Xr+1)'];
   V=Mat'*Yr;
   V=(Mat'*Mat)\V;
   ae = V(1); be = V(2);   
   plot(X, ae*X+be, 'b', 'linewidth', lw);

   grid on;
   set(gca, 'GridLineStyle', '-', 'xcolor', gray);
   set(gca, 'GridLineStyle', '-', 'ycolor', gray);
   set(gca, 'XTick', [-2 -1 0 1 2]);


   axis equal;
   axis([-2, 2, 1, 6]);
   
   saveas(gcf, 'Linear_least_squares.eps', 'psc2'); % save as eps
   %plot2svg('Linear_least_squares.svg'); % save as svg

   
function ball(x, y, r, color)
   Theta=0:0.1:2*pi;
   X=r*cos(Theta)+x;
   Y=r*sin(Theta)+y;
   H=fill(X, Y, color);
   set(H, 'EdgeColor', 'none');

Irudi-oineko testuak

Add a one-line explanation of what this file represents

Fitxategi honetan agertzen diren itemak

honako hau irudikatzen du

2 otsaila 2008

Fitxategiaren historia

Data/orduan klik egin fitxategiak orduan zuen itxura ikusteko.

Data/OrduaIruditxoaNeurriakErabiltzaileaIruzkina
oraingoa06:33, 22 otsaila 200906:33, 22 otsaila 2009 bertsioaren iruditxoa512 × 621 (77 KB)Oleg AlexandrovNormal noise per Michael Hardy
02:58, 3 otsaila 200802:58, 3 otsaila 2008 bertsioaren iruditxoa412 × 523 (75 KB)Oleg Alexandrovtweak width
22:27, 2 otsaila 200822:27, 2 otsaila 2008 bertsioaren iruditxoa401 × 523 (75 KB)Oleg Alexandrovtweak bd box
21:54, 2 otsaila 200821:54, 2 otsaila 2008 bertsioaren iruditxoa4.609 × 5.778 (75 KB)Oleg Alexandrovtweak bd box
21:50, 2 otsaila 200821:50, 2 otsaila 2008 bertsioaren iruditxoa4.609 × 5.778 (75 KB)Oleg Alexandrovtweak bd box
21:41, 2 otsaila 200821:41, 2 otsaila 2008 bertsioaren iruditxoa754 × 945 (74 KB)Oleg Alexandrovtweak text font size
21:38, 2 otsaila 200821:38, 2 otsaila 2008 bertsioaren iruditxoa55 × 69 (74 KB)Oleg Alexandrovtweak text font size
21:15, 2 otsaila 200821:15, 2 otsaila 2008 bertsioaren iruditxoa303 × 411 (74 KB)Oleg Alexandrov{{Information |Description=Illustration of linear least squares. |Source=self-made with MATLAB, tweaked in Inkscape. |Date=~~~~~ |Author= Oleg Alexandrov |Permission=See below |other_versions= }} {{PD

Hurrengo orrialdeek dute fitxategi honetarako lotura:

Fitxategiaren erabilera orokorra

Hurrengo beste wikiek fitxategi hau darabilte: