Fichier d’origine (1 532 × 1 236 pixels, taille du fichier : 53 kio, type MIME : image/png)

    Ce fichier et sa description proviennent de Wikimedia Commons.

    Description Illustration of Gauss-Newton applied to a curve-fitting problem with noisy data. What is plotted is the best fit curve versus the data with the fitting parameters obtained via Gauss-Newton.
    Date (UTC)
    Source self-made with Matlab
    Auteur ou autrice Oleg Alexandrov

    Source code

    function [X, Y] = main()
       
       f=inline('beta1*x/(beta2+x)', 'beta1', 'beta2', 'x');
       f1=inline('x/(beta2+x)', 'beta1', 'beta2', 'x');
       f2=inline('-beta1*x/(beta2+x)^2', 'beta1', 'beta2', 'x');
    
       X = [0.038 	0.194 	    0.425 	0.626 	1.253 	2.500 	3.740];
       Y = [0.05    0.127       0.094    0.2122    0.2729    0.2665    0.3317];
    
       beta10 = 0.9; beta20 = 0.2;
    
       m = length(X);
       R = zeros(m, 1);
       J = zeros(m, 2);
    
       v = [beta10, beta20]';
       
       for k=0:10 % iterate
          
          for i=1:length(X)
    	 R(i)    = Y(i) - f (beta10, beta20, X(i));
    	 J(i, 1) =       -f1(beta10, beta20, X(i));
    	 J(i, 2) =       -f2(beta10, beta20, X(i));
          end
    
          disp(sprintf('%d %0.9g %0.9g %0.9g', k, v(1), v(2), norm(R)));
    
          v = v - (J'*J)\(J'*R);
    
          
          beta10 = v(1);
          beta20 = v(2);
    
       end
       
       % KSmrq's colors
       red=[0.867 0.06 0.14];
       blue = [0, 129, 205]/256;
       green = [0, 200,  70]/256;
       black = [0, 0, 0];
       white = 0.99*[1, 1, 1];
       gray = 0.8*white;
    
       fs = 30;
       lw = 7;
    
       figure(1); clf; hold on;
       set(gca, 'fontsize', fs);
    
       Hx=xlabel('[S]')
       set(gca, 'linewidth', lw/2);
    
       Hy=ylabel('reaction rate');
    
       
       hold on; %axis equal;
       
       h=0.1;
       xs = 0; xl = max(X)+0.2;
       Xe = xs:h:xl;
       Ye = 0*Xe;
       for i=1:length(Xe)
          Ye(i) = f(beta10, beta20, Xe(i));
       end
       plot(Xe, Ye, 'color', blue, 'linewidth', lw);
    
       for i=1:length(X)
          plot(X(i), Y(i), 'color', red, 'marker', 'd', 'linewidth', lw);
       end
    
    
    
       axis([0 4 0 0.35]);
       set(gca, 'XTick', [0 1 2 3 4]);
       set(gca, 'YTick', [0 0.05 0.1 0.15 0.2 0.25 0.3 0.35]);
    
       saveas(gcf, 'Gauss_Newton_illustration.eps', 'psc2'); % save as eps
       return
    
    Public domain Moi, propriétaire des droits d’auteur sur cette œuvre, la place dans le domaine public. Ceci s'applique dans le monde entier.
    Dans certains pays, ceci peut ne pas être possible ; dans ce cas :
    J’accorde à toute personne le droit d’utiliser cette œuvre dans n’importe quel but, sans aucune condition, sauf celles requises par la loi.
    Cette image (de type mathématique) devrait être recréée dans un format vectoriel, en tant que fichier SVG. Cela offrirait plusieurs avantages : voir Commons:Media for cleanup pour plus d’informations. Si une version SVG de cette image est déjà disponible, merci de bien vouloir l’envoyer. Après cela, remplacez ce modèle par {{vector version available|nouveau nom d’image.svg}}.

    Légendes

    Ajoutez en une ligne la description de ce que représente ce fichier

    Éléments décrits dans ce fichier

    dépeint

    54 206 octet

    1 236 pixel

    1 532 pixel

    image/png

    f44f0cea6167b955073979b270d724cb5ce3f115

    Historique du fichier

    Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.

    Date et heureVignetteDimensionsUtilisateurCommentaire
    actuel20 avril 2008 à 23:36Vignette pour la version du 20 avril 2008 à 23:361 532 × 1 236 (53 kio)Oleg Alexandrov{{Information |Description=Illustration of en:Gauss-Newton algorithm |Source=self-made with Matlab |Date=~~~~~ |Author= Oleg Alexandrov |Permission= see below |other_versions= }} ==Source code== <source lang="matlab"> funct

    La page suivante utilise ce fichier :

    Usage global du fichier

    Les autres wikis suivants utilisent ce fichier :