\hypertarget{math_8h}{\section{math.\-h File Reference}
\label{math_8h}\index{math.\-h@{math.\-h}}
}


Functions for mean value calculation.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{math_8h_a8a36fe300833bf9af18abd58c2038395}{mean\-\_\-value} (int $\ast$p, int size)
\begin{DoxyCompactList}\small\item\em Given an 'array' of integers, this function calculates the mean value. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions for mean value calculation. \begin{DoxyAuthor}{Author}
Henrik Sandklef 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
25 Nov 2015 
\end{DoxyDate}


\subsection{Function Documentation}
\hypertarget{math_8h_a8a36fe300833bf9af18abd58c2038395}{\index{math.\-h@{math.\-h}!mean\-\_\-value@{mean\-\_\-value}}
\index{mean\-\_\-value@{mean\-\_\-value}!math.h@{math.\-h}}
\subsubsection[{mean\-\_\-value}]{\setlength{\rightskip}{0pt plus 5cm}int mean\-\_\-value (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{p, }
\item[{int}]{size}
\end{DoxyParamCaption}
)}}\label{math_8h_a8a36fe300833bf9af18abd58c2038395}


Given an 'array' of integers, this function calculates the mean value. 


\begin{DoxyParams}{Parameters}
{\em int} & $\ast$p -\/ 'array' with integers to calc mean from \\
\hline
{\em int} & size -\/ size of 'array' \\
\hline
{\em int} & $\ast$mean\-\_\-value -\/ a pointer to an integer where the function will store the mean value.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily Error} code. 0 -\/ on success. 
\end{DoxyReturn}
return 0 on success