\section{Gaussian\+Initialization Class Reference}
\label{classmlpack_1_1ann_1_1GaussianInitialization}\index{Gaussian\+Initialization@{Gaussian\+Initialization}}


This class is used to initialize weigth matrix with a gaussian.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Gaussian\+Initialization} (const double mean=0, const double variance=1)
\begin{DoxyCompactList}\small\item\em Initialize the gaussian with the given mean and variance. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Mat$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols)
\begin{DoxyCompactList}\small\item\em Initialize the elements weight matrix using a Gaussian Distribution. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Cube$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols, const size\+\_\+t slices)
\begin{DoxyCompactList}\small\item\em Initialize randomly the elements of the specified weight 3rd order tensor. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to initialize weigth matrix with a gaussian. 

Definition at line 28 of file gaussian\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1GaussianInitialization_a24cf98fa7ddd2bb1b828c41bd0caa7de}} 
\index{mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}!Gaussian\+Initialization@{Gaussian\+Initialization}}
\index{Gaussian\+Initialization@{Gaussian\+Initialization}!mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}}
\subsubsection{Gaussian\+Initialization()}
{\footnotesize\ttfamily \textbf{ Gaussian\+Initialization} (\begin{DoxyParamCaption}\item[{const double}]{mean = {\ttfamily 0},  }\item[{const double}]{variance = {\ttfamily 1} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the gaussian with the given mean and variance. 


\begin{DoxyParams}{Parameters}
{\em mean} & Mean of the gaussian. \\
\hline
{\em variance} & Variance of the gaussian. \\
\hline
\end{DoxyParams}


Definition at line 37 of file gaussian\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1GaussianInitialization_a5cfe472251a41fffd45b170bb0d3c1bd}} 
\index{mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements weight matrix using a Gaussian Distribution. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
\end{DoxyParams}


Definition at line 51 of file gaussian\+\_\+init.\+hpp.



References mlpack\+::math\+::\+Rand\+Normal().



Referenced by Glorot\+Initialization\+Type$<$ Uniform $>$\+::\+Initialize().

\mbox{\label{classmlpack_1_1ann_1_1GaussianInitialization_a40a2b6466bdba0f6aab4eb92b6e65934}} 
\index{mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Gaussian\+Initialization@{mlpack\+::ann\+::\+Gaussian\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Cube$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols,  }\item[{const size\+\_\+t}]{slices }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize randomly the elements of the specified weight 3rd order tensor. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
{\em slice} & Numbers of slices. \\
\hline
\end{DoxyParams}


Definition at line 71 of file gaussian\+\_\+init.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+1/src/mlpack/methods/ann/init\+\_\+rules/\textbf{ gaussian\+\_\+init.\+hpp}\end{DoxyCompactItemize}
