diff options
author | Karl Berry <karl@freefriends.org> | 2024-10-10 19:42:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-10-10 19:42:15 +0000 |
commit | c480fd1dd5b17382f14a520147c509b6a0b48948 (patch) | |
tree | 47fa6b9d385d45c8a3fe6e58708cd6cdd72cf9c1 /Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex | |
parent | dcab7d999091cd30200c69989cc5f4ef7dea013f (diff) |
proflycee (10oct24)
git-svn-id: svn://tug.org/texlive/trunk@72515 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex b/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex index 89fe8945032..4c4877a0bdb 100644 --- a/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex +++ b/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex @@ -555,6 +555,7 @@ % \edef#3{\the\pgf@y}% % } +\makeatletter \defKV[courbeECC]{% Largeur=\def\ecc@larg@graph{#1},% Hauteur=\def\ecc@haut@graph{#1},% @@ -796,6 +797,7 @@ \end{tikzpicture}% \CourbeECCStylesDefaut% } +\makeatother %détermination 'simple' des paramètres \NewDocumentCommand\MedianeQuartilesECC{ m m }{% @@ -838,4 +840,55 @@ }% } +%====Paramètres statistiques (stockage/afifchage, sans rédaction) +\NewDocumentCommand\DeterminerParamStats{ s m O{\monmin} O{\monquartileun} O{\mamediane} O{\monquartiletrois} O{\monmax} }{% + %traitement de la liste, *=effectifs + \IfBooleanTF{#1}% + {% + \setsepchar[.]{,./}% + \readlist*\listeTdonneesregroup{#2}% + \def\TMPLST{}% + \foreach \i in {1,...,\listeTdonneesregrouplen}{% + \itemtomacro\listeTdonneesregroup[\i,1]\myelt% + \itemtomacro\listeTdonneesregroup[\i,2]\mynbelt% + \foreach \j in {1,...,\mynbelt}{% + \xintifboolexpr{ \i*\j == 1}% + {% + \xdef\TMPLST{\myelt}% + }% + {% + \xdef\TMPLST{\TMPLST,\myelt}% + }% + }% + }% + }% + {% + \xdef\TMPLST{#2}% + }% + \sortasclist{\TMPLST}% + \lenoflist{\TMPLST}[\nbdonnees]% + %médiane + \xintifboolexpr{ \xintiiRem{\nbdonnees}{2} == 0 }% + {% + \xdef\tmpranga{\xintfloateval{\nbdonnees/2}}%\tmpranga + \xdef\tmprangb{\xintfloateval{\nbdonnees/2+1}}%\tmprangb + \getvaluefromlist{\TMPLST}{\tmpranga}[\myvala]% + \getvaluefromlist{\TMPLST}{\tmprangb}[\myvalb]% + \xdef#5{\xintfloateval{(\myvala+\myvalb)/2}}% + }% + {% + \xdef\tmprang{\xintfloateval{(\nbdonnees+1)/2}}% + \getvaluefromlist{\TMPLST}{\tmprang}[#5]% + }% + %quartileun + \xdef\tmprangqa{\xintfloateval{ceil(0.25*\nbdonnees)}}%\tmpranga + \getvaluefromlist{\TMPLST}{\tmprangqa}[#4]% + %quartiletrois + \xdef\tmprangqc{\xintfloateval{ceil(0.75*\nbdonnees)}}%\tmpranga + \getvaluefromlist{\TMPLST}{\tmprangqc}[#6]% + %min/max + \minoflist{\TMPLST}[#3]% + \maxoflist{\TMPLST}[#7]% +} + \endinput
\ No newline at end of file |