\hypertarget{a00049}{
\section{mln::accu::stat::median\_\-alt$<$ S $>$ Struct Template Reference}
\label{d2/dee/a00049}\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}}
}


Generic \hyperlink{a00049}{median\_\-alt} function based on histogram over a value set with type {\ttfamily S}.  




{\ttfamily \#include $<$median\_\-alt.hh$>$}



Inheritance diagram for mln::accu::stat::median\_\-alt$<$ S $>$:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=324pt]{dd/d3c/a03735}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
bool \hyperlink{a00049_af4693acdf108bc216f1dfbe1279d1a46}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Check whether this accu is able to return a result. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{take\_\-as\_\-init} (const T \&t)
\begin{DoxyCompactList}\small\item\em Take as initialization the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
void \hyperlink{a00026_a138e094daa1a85f345bbdfd852c9fc67}{take\_\-n\_\-times} (unsigned n, const T \&t)
\begin{DoxyCompactList}\small\item\em Take {\ttfamily n} times the value {\ttfamily t}. \item\end{DoxyCompactList}\item 
const argument \& \hyperlink{a00049_aa8e4fc4b034afa0a54ac6c713442991c}{to\_\-result} () const 
\begin{DoxyCompactList}\small\item\em Get the value of the accumulator. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00049_ae64014ef8809b14f82816aad6e1f3f80}{take} (const argument \&t)
\begin{DoxyCompactList}\small\item\em Manipulators. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
\subsubsection*{template$<$typename S$>$ struct mln::accu::stat::median\_\-alt$<$ S $>$}

Generic \hyperlink{a00049}{median\_\-alt} function based on histogram over a value set with type {\ttfamily S}. 

Definition at line 54 of file median\_\-alt.hh.



\subsection{Member Function Documentation}
\hypertarget{a00049_af4693acdf108bc216f1dfbe1279d1a46}{
\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!mln::accu::stat::median_alt@{mln::accu::stat::median\_\-alt}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ bool {\bf mln::accu::stat::median\_\-alt}$<$ S $>$::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dee/a00049_af4693acdf108bc216f1dfbe1279d1a46}


Check whether this accu is able to return a result. 

Always true here. 

Definition at line 282 of file median\_\-alt.hh.

\hypertarget{a00049_ae64014ef8809b14f82816aad6e1f3f80}{
\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}!take@{take}}
\index{take@{take}!mln::accu::stat::median_alt@{mln::accu::stat::median\_\-alt}}
\subsubsection[{take}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ void {\bf mln::accu::stat::median\_\-alt}$<$ S $>$::take (
\begin{DoxyParamCaption}
\item[{const argument \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dee/a00049_ae64014ef8809b14f82816aad6e1f3f80}


Manipulators. 



Definition at line 165 of file median\_\-alt.hh.

\hypertarget{a00026_a745794a4ef16926d3c09ebbaa8b6b557}{
\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}!take\_\-as\_\-init@{take\_\-as\_\-init}}
\index{take\_\-as\_\-init@{take\_\-as\_\-init}!mln::accu::stat::median_alt@{mln::accu::stat::median\_\-alt}}
\subsubsection[{take\_\-as\_\-init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf median\_\-alt}$<$ S $>$  $>$::take\_\-as\_\-init (
\begin{DoxyParamCaption}
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a745794a4ef16926d3c09ebbaa8b6b557}


Take as initialization the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00026_a138e094daa1a85f345bbdfd852c9fc67}{
\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}!take\_\-n\_\-times@{take\_\-n\_\-times}}
\index{take\_\-n\_\-times@{take\_\-n\_\-times}!mln::accu::stat::median_alt@{mln::accu::stat::median\_\-alt}}
\subsubsection[{take\_\-n\_\-times}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mln::Accumulator}$<$ {\bf median\_\-alt}$<$ S $>$  $>$::take\_\-n\_\-times (
\begin{DoxyParamCaption}
\item[{unsigned}]{ n, }
\item[{const T \&}]{ t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}
\label{d6/d5b/a00026_a138e094daa1a85f345bbdfd852c9fc67}


Take {\ttfamily n} times the value {\ttfamily t}. 

Dev note: this is a final method; override if needed by take\_\-as\_\-init\_\- (ending with '\_\-'). \hypertarget{a00049_aa8e4fc4b034afa0a54ac6c713442991c}{
\index{mln::accu::stat::median\_\-alt@{mln::accu::stat::median\_\-alt}!to\_\-result@{to\_\-result}}
\index{to\_\-result@{to\_\-result}!mln::accu::stat::median_alt@{mln::accu::stat::median\_\-alt}}
\subsubsection[{to\_\-result}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename S $>$ const {\bf median\_\-alt}$<$ S $>$::argument \& {\bf mln::accu::stat::median\_\-alt}$<$ S $>$::to\_\-result (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d2/dee/a00049_aa8e4fc4b034afa0a54ac6c713442991c}


Get the value of the accumulator. 



Definition at line 274 of file median\_\-alt.hh.

