Սկզբնական նիշք(1245 × 1569 փիքսել, նիշքի չափը՝ 52 ԿԲ, MIME-տեսակը՝ image/png)

Այս նիշքը տեղադրված է Վիքիպահեստում է և այն կարող է օգտագործվել այլ նախագծերի կողմից։ Վիքիպահեստում նիշքի մասին տեղեկությունների հիմնական մասը ներկայացված է ստորև։

Ամփոփում

Նկարագրում Illustration of linear least squares.
Թվական (UTC)
Աղբյուր self-made with MATLAB
Հեղինակ Oleg Alexandrov
Այլ մեկնակերպներ
Please translate the English parts of this template into Armenian.
Գոյություն ունի այս պատկերի վեկտորային տարբերակը ("SVG"): Եթե այն իր ռաստրային տարբերակից ավելի որակյալ է, ապա գերադասելի է նրա օգտագործումը:

File:Linear least squares example2.png → File:Linear least squares example2.svg

Վեկտորային գրաֆիկայի մասին ավելին իմանալու համար կարող եք կարդալ պատկերների փոխադրման մասին SVG ֆորմատի:
Նաև մատչելի են տեղեկություններ SVG ֆորմատի աջակցման մասին ՄեդիաՎիքիյում:

Այլ լեզուներով
Alemannisch  Bahasa Indonesia  Bahasa Melayu  British English  català  čeština  dansk  Deutsch  eesti  English  español  Esperanto  euskara  français  Frysk  galego  hrvatski  Ido  italiano  lietuvių  magyar  Nederlands  norsk bokmål  norsk nynorsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  Scots  sicilianu  slovenčina  slovenščina  suomi  svenska  Tiếng Việt  Türkçe  vèneto  Ελληνικά  беларуская (тарашкевіца)  български  македонски  нохчийн  русский  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  简体中文  繁體中文  עברית  العربية  فارسی  +/−
Նոր պատկեր

 
Սա PNG graphic ստեղծված է եղել MATLAB օգնությամբ: .


Արտոնագրում

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Source code (MATLAB)

% Illustration of linear least squares.
function main()
 
   % KSmrq's colors
   red    = [0.867 0.06 0.14];
   blue   = [0, 129, 205]/256;
   green  = [0 100 0]/256;
   green=[0 139 0]/256;
   
   yellow = [254, 194,   0]/256;
   white = 0.99*[1, 1, 1];
   gray = 0.1*white;
 
   Xr = [1, 2, 3, 4];
   Yr = round(1+1.5*Xr+4*rand(1, 4))
   %Yr = [9  13  15 14];
   Yr = [6 5 7 10];
   
   A = min(Xr)-1; B = max(Xr)+1;
   C = min(Yr)-1; D = max(Yr)+1;
   N = 100;
   small = 0.2;
   X = linspace(A, B, N);
 
 
   % least squares fitting
   Yr = Yr';
   Xr=Xr';
   Mat = [(0*Xr+1) Xr];
   V=Mat'*Yr;
   V
   Mat
   V=(Mat'*Mat)\V;
   pe = V(1); qe = V(2);

   V
   
   % Set up the figure
   lw = 5; % linewidth
   lw2 = lw/2;
   fs = 22; % font size
   figure(1); clf; hold on;
   set(gca, 'fontsize', fs);
   set(gca, 'linewidth', lw2)
   hold on; grid on;
   axis equal;
 

   grid off;

   for i=1:length(Xr)
      plot([Xr(i), Xr(i)], [Yr(i) pe+qe*Xr(i)], 'color', green, 'linewidth', 0.95*lw);
   end

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

   plot(X, pe+qe*X, 'b', 'linewidth', lw);
   
   set(gca, 'GridLineStyle', '-', 'xcolor', gray);
   set(gca, 'GridLineStyle', '-', 'ycolor', gray);
   set(gca, 'XTick', A:1:B);
   set(gca, 'YTick', C:1:D);

   
   Yr - (pe+qe*Xr)
   
   axis equal;
   axis([A B C D]);
 
   saveas(gcf, 'Linear_least_squares_example.eps', 'psc2'); % save as eps
 
 
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')

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

պատկերված

24 Մայիսի 2008

Նիշքի պատմություն

Մատնահարեք օրվան/ժամին՝ նիշքի այդ պահին տեսքը դիտելու համար։

Օր/ԺամՄանրապատկերՕբյեկտի չափըՄասնակիցՄեկնաբանություն
ընթացիկ19:51, 1 Հունիսի 200819:51, 1 Հունիսի 2008 տարբերակի մանրապատկերը1245 × 1569 (52 ԿԲ)Oleg AlexandrovAdd x and y labels
04:12, 24 Մայիսի 200804:12, 24 Մայիսի 2008 տարբերակի մանրապատկերը1199 × 1476 (37 ԿԲ)Oleg Alexandrov{{Information |Description=Illustration of linear least squares. |Source=self-made with MATLAB |Date=~~~~~ |Author= Oleg Alexandrov |Permission=See below |other_versions= }} {{PD-self}} ==Source code

Հետևյալ էջը հղվում է այս նիշքին՝

Նիշքի համընդհանուր օգտագործում

Հետևյալ այլ վիքիները օգտագործում են այս նիշքը՝