파일:Regression circulaire coope arc de cercle.svg

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (SVG 파일, 실제 크기 442 × 363 픽셀, 파일 크기: 20 KB)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: Circle fitting, the points describing only an arc. Kåsa and Coope linear algorithm (method of the algebraic distance). The real values are:
    • C(1 ; 1);
    • r = 4.
    Created with Scilab, modified with Inkscape.
    Français : Régression circulaire sur des points ne décrivant qu'un arc. Algorithme linéaire de Kåsa et Coope (méthode de la distance algébrique). Les valeurs réelles sont :
    • C(1 ; 1) ;
    • r = 4.
    Créé avec Scilab, modifié avec Inkscape.
    날짜
    출처 자작
    저자 Cdang (Christophe Dang Ngoc Chan)
    SVG 발전
    InfoField
     이 SVG 파일의 소스 코드 문법이 올바릅니다.
     이 벡터 그림은 Inkscape(으)로 cdang에 의해서제작되었습니다.
      이 SVG 깃발은 내장된 문자열을 사용하고 있으며 문서 편집기를 사용해서 쉽게 번역할 수 있습니다.

    Source code

    Scilab – free and open source software for numerical computation의 로고
    Scilab – free and open source software for numerical computation의 로고
    This media was created with Scilab (free and open source software for numerical computation)
    Here is a listing of the source used to create this file.

    Deutsch ∙ македонски ∙ English ∙ +/−

    Crée les données et les enregistre dans le fichier arc_cercle_bruite.txt.
    // **********
    // Initialisation
    // **********
    
    clear;
    chdir('monchemin/');
    
    // **********
    // Constantes
    // **********
    
    // paramètres de l'arc de cercle
    centre=[1;1];
    rayon = 4;
    angle = %pi/3:0.1:2*%pi/3;
    
    // paramètres du bruit
    var = 0.05;
    
    // **********
    // Programme principal
    // **********
    
    // génération des données
    ligne_rayon_bruite = rayon + var*rand(angle,'norm');
    foo = [cos(angle);sin(angle)].* ...
        [ligne_rayon_bruite;ligne_rayon_bruite];
    arc_cercle_bruite(1,:) = centre(1) + foo(1,:);
    arc_cercle_bruite(2,:) = centre(2) + foo(2,:);
    
    clf
    plot(arc_cercle_bruite(1,:), arc_cercle_bruite(2,:), '+')
    write('arc_cercle_bruite.txt', arc_cercle_bruite')
    
    Lit les données de arc_cercle_bruite.txt et effectue la régression circulaire.
    // **********
    // Initialisation
    // **********
     
    clear;
    chdir('monchemin/')
     
    // **********
    // fonctions
    // **********
     
    // régression circulaire linéaire
     
    function [C, r, R]=regression_circulaire(X, Y)
        // X, Y : points expérimentaux (vecteurs ligne)
        // C : coordonnées du centre du cercle (vecteur)
        // r : rayon du cercle (scalaire)
        A = [X ; Y];
        d = X.^2 + Y.^2;
        // xetoile = 2*xcentre
        // yetoile = 2*ycentre
        // zetoile = r^2 - (xcentre^2 + ycentre^2)
        [xyetoile, zetoile, sigma] = reglin(A, d);
        C = 0.5*xyetoile;
        r = sqrt(zetoile + C(1)^2 + C(2)^2);
        // A'\d' si l'on ne s'intéresse pas à l'écart
        R = sigma;
    endfunction
     
    // **********
    // programme principal
    // **********
     
    // lecture des données
     
    // Xdef, Ydef : vecteurs ligne
    donnees = read('arc_cercle_bruite.txt', -1, 2)';
    Xdef = donnees(1,:);
    Ydef = donnees(2,:);
     
    // regression
    [centre, rayon, ecart] = regression_circulaire(Xdef, Ydef)
     
    // tracé
     
    clf;
    // points
    plot2d(Xdef, Ydef, style = -1) //, frameflag=4)
    isoview(-2, 4, 1, 6);
    xstring(-1.5, 5.5, 'C('+string(centre(1))+' ; '+string(centre(2))+') ; r = '+string(rayon))
    // modèle
    plot(centre(1), centre(2), 'r+')
    diametre = 2*rayon;
    xarc(centre(1) - rayon, centre(2) + rayon,...
        diametre, diametre,...
        0, 360*64)
    a = get('hdl'); // ellipse
    a.foreground = 5; // couleur
     
     
    print(%io(2), centre)
    print(%io(2), rayon)
    print(%io(2), ecart)
    

    라이선스

    Cdang (Christophe Dang Ngoc Chan)은(는) 아래 작품의 저작권자로서, 해당 저작물을 다음과 같은 라이선스로 배포합니다:
    Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
    저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

    이 파일에 묘사된 항목

    다음을 묘사함

    20,277 바이트

    image/svg+xml

    f1bd7990d2ff046b632a255a711fbf94db7f8028

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2012년 12월 7일 (금) 16:512012년 12월 7일 (금) 16:51 판의 섬네일442 × 363 (20 KB)wikimediacommons>Cdang{{Information |Description ={{en|1=Circle fitting, the points describing only a bow. Coope linear algorithm. The real values are: * C(1 ; 1); * ''r'' = 4. Created with Scilab, modified with Inkscape.}} {{fr|1=Régression circulaire sur des points d ...

    이 파일을 사용하는 문서가 없습니다.