texlive[72621] Master/texmf-dist: proflycee (22oct24)

commits+karl at tug.org commits+karl at tug.org
Tue Oct 22 22:38:31 CEST 2024


Revision: 72621
          https://tug.org/svn/texlive?view=revision&revision=72621
Author:   karl
Date:     2024-10-22 22:38:31 +0200 (Tue, 22 Oct 2024)
Log Message:
-----------
proflycee (22oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
    trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-docctan.zip
    trunk/Master/texmf-dist/doc/latex/proflycee/README.md
    trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
    trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/ProfLycee-docctan.zip
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/proflycee/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/proflycee/README.md	2024-10-22 20:38:17 UTC (rev 72620)
+++ trunk/Master/texmf-dist/doc/latex/proflycee/README.md	2024-10-22 20:38:31 UTC (rev 72621)
@@ -12,3 +12,4 @@
 email    : cpierquet at outlook.fr
 Licences : Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
            CC0 for cliparts (from openclipart)
+		   CC BY-SA 3.0 (from Mark Wibrow helping code)

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-10-22 20:38:17 UTC (rev 72620)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/ProfLycee.sty	2024-10-22 20:38:31 UTC (rev 72621)
@@ -5,7 +5,8 @@
 % code
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2024/10/10 3.10c Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2024/10/22 3.10d Aide pour l'utilisation de LaTeX en lycee]
+% 3.10d	Correction d'un nom de commande (doublon avec ProfMaquette)
 % 3.10c	Ajout de clés/arguments pour les arbres de probas + paramètres stats + arbres de dénombrement(s)
 % 3.10b	Ajout des empilements d'oranges + commandes sur les dates
 % 3.10a	Bifurcation pfl / pfllight + pflnum consolidée

Modified: trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex	2024-10-22 20:38:17 UTC (rev 72620)
+++ trunk/Master/texmf-dist/tex/latex/proflycee/proflycee-tools-stats.tex	2024-10-22 20:38:31 UTC (rev 72621)
@@ -840,7 +840,7 @@
 	}%
 }
 
-%====Paramètres statistiques (stockage/afifchage, sans rédaction)
+%====Paramètres statistiques (stockage/affichage, sans rédaction)
 \NewDocumentCommand\DeterminerParamStats{ s m O{\monmin} O{\monquartileun} O{\mamediane} O{\monquartiletrois} O{\monmax} }{%
 	%traitement de la liste, *=effectifs
 	\IfBooleanTF{#1}%
@@ -864,31 +864,79 @@
 		}%
 		{%
 			\xdef\TMPLST{#2}%
+			\sortasclist{\TMPLST}%
 		}%
-	\sortasclist{\TMPLST}%
-	\lenoflist{\TMPLST}[\nbdonnees]%
+	\definemylist{\TMPLST}{\listeTdonneesregroup}%
+	\lenofdeflist{listeTdonneesregroup}[\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]%
+			\getvaluefromdeflist{listeTdonneesregroup}{\tmpranga}[\myvala]%
+			\getvaluefromdeflist{listeTdonneesregroup}{\tmprangb}[\myvalb]%
 			\xdef#5{\xintfloateval{(\myvala+\myvalb)/2}}%
 		}%
 		{%
 			\xdef\tmprang{\xintfloateval{(\nbdonnees+1)/2}}%
-			\getvaluefromlist{\TMPLST}{\tmprang}[#5]%
+			\getvaluefromdeflist{listeTdonneesregroup}{\tmprang}[#5]%
 		}%
 	%quartileun
 	\xdef\tmprangqa{\xintfloateval{ceil(0.25*\nbdonnees)}}%\tmpranga
-	\getvaluefromlist{\TMPLST}{\tmprangqa}[#4]%
+	\getvaluefromdeflist{listeTdonneesregroup}{\tmprangqa}[#4]%
 	%quartiletrois
 	\xdef\tmprangqc{\xintfloateval{ceil(0.75*\nbdonnees)}}%\tmpranga
-	\getvaluefromlist{\TMPLST}{\tmprangqc}[#6]%
+	\getvaluefromdeflist{listeTdonneesregroup}{\tmprangqc}[#6]%
 	%min/max
 	\minoflist{\TMPLST}[#3]%
 	\maxoflist{\TMPLST}[#7]%
+	%moyenne
+	\meanofdeflist{listeTdonneesregroup}[\mamoyenne]%
+	%écart-type
+	\xdef\monecarttype{0}%
+	\foreach \i in {1,...,\nbdonnees}{%
+			\getvaluefromdeflist{listeTdonneesregroup}{\i}[\myval]%
+			\xdef\monecarttype{\xintfloateval{\monecarttype+(\myval-\mamoyenne)^2}}%
+	}%
+	\xdef\monecarttype{\xintfloateval{sqrt(\monecarttype/\nbdonnees)}}%
 }
 
+\NewDocumentCommand\DeterminerMoyEctype{ s m O{\mamoyenne} O{\monecarttype} }{%
+	%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}%
+		}%
+	\definemylist{\TMPLST}{\listeTdonneesregroup}%
+	\lenofdeflist{listeTdonneesregroup}[\nbdonnees]%
+	%moyenne
+	\meanofdeflist{listeTdonneesregroup}[#3]%
+	%écart-type
+	\xdef#4{0}%
+	\foreach \i in {1,...,\nbdonnees}{%
+			\getvaluefromdeflist{listeTdonneesregroup}{\i}[\myval]%
+			\xdef#4{\xintfloateval{#4+(\myval-\mamoyenne)^2}}%
+	}%
+	\xdef#4{\xintfloateval{sqrt(#4/\nbdonnees)}}%
+}
+
 \endinput
\ No newline at end of file



More information about the tex-live-commits mailing list.