sections: add image for sample median

This commit is contained in:
Giù Marcer 2020-06-12 00:09:22 +02:00 committed by rnhmjoj
parent 6f03a77cbd
commit cfa1525236

View File

@ -42,6 +42,41 @@ How to estimate sample median, mode and FWHM?
:::
::::
\setbeamercovered{}
\begin{center}
\begin{tikzpicture}[remember picture, >=Stealth]
% line
\draw [line width=3, ->, cyclamen] (-5,0) -- (5,0);
\node [right] at (5,0) {$x$};
% points
\draw [yellow!50!black, fill=yellow] (-4.6,-0.1) rectangle (-4.8,0.1);
\draw [yellow!50!black, fill=yellow] (-4,-0.1) rectangle (-4.2,0.1);
\draw [yellow!50!black, fill=yellow] (-3.3,-0.1) rectangle (-3.5,0.1);
\draw [yellow!50!black, fill=yellow] (-2.3,-0.1) rectangle (-2.5,0.1);
\draw [yellow!50!black, fill=yellow] (-0.6,-0.1) rectangle (-0.8,0.1);
\draw [yellow!50!black, fill=yellow] (-0.1,-0.1) rectangle (0.1,0.1);
\draw [yellow!50!black, fill=yellow] (1.1,-0.1) rectangle (1.3,0.1);
\draw [yellow!50!black, fill=yellow] (2,-0.1) rectangle (2.2,0.1);
\draw [yellow!50!black, fill=yellow] (2.7,-0.1) rectangle (2.9,0.1);
\draw [yellow!50!black, fill=yellow] (4,-0.1) rectangle (4.2,0.1);
\pause
% nodes
\node [below] at (-4.7,-0.1) {1};
\node [below] at (-4.1,-0.1) {2};
\node [below] at (-3.4,-0.1) {3};
\node [below] at (-2.4,-0.1) {4};
\node [below] at (-0.7,-0.1) {5};
\node [below] at ( 0 ,-0.1) {6};
\node [below] at ( 1.2,-0.1) {7};
\node [below] at ( 2.1,-0.1) {8};
\node [below] at ( 2.8,-0.1) {9};
\node [below] at ( 4.1,-0.1) {10};
\pause
\draw [ultra thick] (-0.35,0.7) -- (-0.35,-0.7);
\end{tikzpicture}
\end{center}
\setbeamercovered{transparent}
## Sample mode