File:Regression circulaire dist alg gander.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 468 × 364 pixels. Other resolutions: 309 × 240 pixels | 617 × 480 pixels | 988 × 768 pixels | 1,280 × 996 pixels | 2,560 × 1,991 pixels.
Original file (SVG file, nominally 468 × 364 pixels, file size: 21 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionRegression circulaire dist alg gander.svg |
English: Circle fitting by minimizing the algebraic distance. Created with Scilab, modified with Inkscape.
Français : Régression circulaire en minimisant la distance algébrique. Créé avec Scilab, modifié avec Inkscape. |
Date | |
Source | Own work, from Gander, W., Golub, G. H. and Strebel, R., Fitting of Circles and Ellipses. Least Squares Solution, Eidgenössische Technische Hochschule (ETH, Zürich), june 1994, report 217, [1] |
Author | Cdang |
Scilab source
This media was created with Scilab, a free open-source software. Here is a listing of the Scilab source used to create this file. |
// **********
// Initialisation
// **********
clear;
// données (Gander et coll.)
X0 = [1, 2, 5, 7, 9, 3];
Y0 = [7, 6, 8, 7, 5, 7];
function [A] = regression_circulaire(X, Y)
B = [X.^2 + Y.^2, X, Y, ones(X)];
[U, S, V]= svd(B);
u = V(:,4); a = u(1); b =[u(2); u(3)]; c = u(4);
z = -b/2/a; r = sqrt(norm(z)^2 - c/a);
A = [z', r];
endfunction
// **********
// programme principal
// **********
// lecture des données
// Xdef, Ydef : vecteurs ligne
Xdef = X0';
Ydef = Y0';
fenetre = scf(0); // création de la fenêtre graphique
// regression
[Aopt] = regression_circulaire(Xdef, Ydef)
centre = Aopt(1:2);
rayon = Aopt(3);
diam = 2*rayon;
print(%io(2), centre)
print(%io(2), rayon)
plot(Xdef, Ydef, 'b+');
plot(centre(1), centre(2), 'r+');
xarc(centre(1)-rayon, centre(2)+rayon, diam, diam, 0, 360*64)
xmin = min(centre(1)-rayon, min(Xdef));
xmax = max(centre(1)+rayon, max(Xdef));
ymin = min(centre(2)-rayon, min(Ydef));
ymax = max(centre(2)+rayon, max(Ydef));
isoview(xmin, xmax, ymin, ymax);
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:19, 3 January 2013 | 468 × 364 (21 KB) | Cdang (talk | contribs) | {{Information |Description ={{en|1=Circle -> red}} |Source ={{own}} |Author =Cdang |Date = |Permission = |other_versions = }} | |
16:54, 3 January 2013 | 468 × 364 (21 KB) | Cdang (talk | contribs) | {{Information |Description ={{en|1=Circle fitting by minimizing the algebraic distance. Created with Scilab, modified with Inkscape.}} {{fr|1=Régression circulaire en minimisant la distance algébrique. Créé avec Scilab, modifié avec Inkscape.}}... |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on fr.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Short title | Régression circulaire par la minimisation de la distance algébrique |
---|---|
Image title | Creator: GL2PS 1.3.2, (C) 1999-2006 Christophe Geuzaine (geuz@geuz.org)
For: Scilab CreationDate: Thu Jan 03 17:48:25 2013 |
Width | 467.56055 |
Height | 364.31445 |