SPB Git

Repository Public MIT Research preview

S19-F01-matrice-evaluation.tex 4.4 KB 69 lines latex

1% S19-F01 — Matrice d'évaluation : versions × qualité, coût, latence, fiabilité (figure phare 23).2% DONNÉES : S19-F01-donnees.tex, généré par demos/src/atlas_s19/exporter_donnees_figures.py.3% Idée : aucune version ne gagne partout. La version D obtient la meilleure valeur dans quatre4% colonnes en s'abstenant, et la pire réussite : un chiffre seul désigne le mauvais gagnant.5% L'intervalle de Wilson (trait ambre) rappelle que 24 cas ne tranchent pas tout.6\input{S19-F01-donnees.tex}%7\begin{tikzpicture}[x=1mm, y=1mm]8  \def\xr{31}\def\lr{25}% origine et longueur de la barre de réussite9  % ---------- En-têtes ----------10  \foreach \xa/\xb/\titre in {31/82/QUALITÉ, 84/97/COÛT, 98.5/113/LATENCE, 114.5/141.6/FIABILITÉ}{11    \draw[atlas link, line width=.5pt] (\xa,47.6) -- (\xb,47.6);12    \node[atlas tag=atlasMuted] at ({(\xa+\xb)/2},47.6) {\titre};13  }14  \node[atlas note, anchor=west] at (0,42.3) {Version};15  \node[atlas note, anchor=west] at (\xr,42.3) {réussite, intervalle à 95 \%};16  \foreach \x/\texte in {75/{affirmations\\ non fondées}, 90.5/{mots lus\\ (médiane)}, 105.5/{durée\\ (médiane)},17                         120/{actions non\\ permises}, 134.6/{toujours\\ réussis}}{18    \node[atlas note, align=center] at (\x,42.3) {\texte};19  }20  \draw[atlas link, line width=.5pt] (0,38.6) -- (142,38.6);21  % ---------- Une ligne par version ----------22  \foreach \v/\desc/\k/\n/\lo/\hi/\nf/\em/\mots/\med/\pq/\medfr/\pqfr/\np/\st/\ba/\bb/\bc/\bd/\be/\bf23      [count=\i from 0] in \AtlasDixNeufMatrice {24    \pgfmathsetmacro{\y}{33.8 - \i*8}25    % Meilleure valeur de la colonne : cadre turquoise26    \foreach \drapeau/\xa/\xb in {\ba/29.6/66.4, \bb/67.6/82.4, \bc/83.6/97.4, \bd/98.6/112.4, \be/113.6/126.4, \bf/127.6/141.6}{27      \ifnum\drapeau=128        \draw[draw=atlasValid, line width=.9pt, rounded corners=1.6pt] (\xa,\y-3.5) rectangle (\xb,\y+3.5);29      \fi30    }31    \node[atlas heading, anchor=west] at (0,\y+.9) {\v};32    \node[atlas note, anchor=north west, text width=24mm] at (4.4,\y+2.9) {\desc};33    % Réussite : barre, intervalle de Wilson, compte34    \draw[draw=atlasRule, line width=.6pt] (\xr,\y-2.1) rectangle ++(\lr,2.4);35    \fill[atlasFlow] (\xr,\y-2.1) rectangle ++({\k/\n*\lr},2.4);36    \draw[draw=atlasUncertain, line width=1.3pt] ({\xr+\lo*\lr},\y+1.9) -- ({\xr+\hi*\lr},\y+1.9);37    \foreach \b in {\lo,\hi}{\draw[draw=atlasUncertain, line width=1pt] ({\xr+\b*\lr},\y+1.1) -- ++(0,1.6);}38    \node[atlas label, anchor=west, font=\AtlasTabularFont\AtlasSizeLabel] at (\xr+\lr+1.2,\y-.4) {\k/\n};39    % Affirmations non fondées40    \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (75,\y) {\nf/\em};41    % Coût42    \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (90.5,\y+1) {\mots};43    \fill[atlasFlow] (85,\y-2.6) rectangle ++({\mots/\AtlasDixNeufMatriceMotsMax*11},1.2);44    % Latence : barre pleine jusqu'à la médiane, contour jusqu'au 90e centile45    \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (105.5,\y+1) {\medfr~s};46    \draw[draw=atlasFlow, line width=.6pt] (100,\y-2.6) rectangle ++({\pq/\AtlasDixNeufMatriceDureeMax*11},1.2);47    \fill[atlasFlow] (100,\y-2.6) rectangle ++({\med/\AtlasDixNeufMatriceDureeMax*11},1.2);48    % Fiabilité49    \ifnum\np=050      \pic[atlasValid, scale=.3] at (117.6,\y) {atlas check};51    \else52      \pic[atlasHazard, scale=.3] at (117.6,\y) {atlas cross};53    \fi54    \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (122,\y) {\np};55    \node[atlas label, font=\AtlasTabularFont\AtlasSizeLabel] at (134.6,\y) {\st/\n};56  }57  % ---------- Légende ----------58  \draw[draw=atlasValid, line width=.9pt, rounded corners=1.2pt] (0,1.9) rectangle ++(4,2.6);59  \node[atlas note, anchor=west] at (4.8,3.2) {meilleure valeur de la colonne};60  \draw[draw=atlasUncertain, line width=1.3pt] (42,3.2) -- ++(5,0);61  \foreach \x in {42,47}{\draw[draw=atlasUncertain, line width=1pt] (\x,2.4) -- ++(0,1.6);}62  \node[atlas note, anchor=west] at (48,3.2) {intervalle de Wilson};63  \draw[draw=atlasFlow, line width=.6pt] (75,2.6) rectangle ++(6,1.2);64  \fill[atlasFlow] (75,2.6) rectangle ++(3.4,1.2);65  \node[atlas note, anchor=west] at (82,3.2) {durée : médiane (plein), 90\textsuperscript{e} centile (contour)};66  \node[atlas note, anchor=west] at (0,-.3)67    {\AtlasDixNeufMatriceCas\ cas de mise au point. « Toujours réussis » : à chacune des \AtlasDixNeufMatriceGraines\ exécutions avec aléa (écart de \AtlasDixNeufMatriceEcart~\%).};68\end{tikzpicture}69
Files main
Menu

Theme