\section{R\+BF$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1RBF}\index{R\+B\+F$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$@{R\+B\+F$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$}}


Implementation of the Radial Basis Function layer.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ R\+BF} ()
\begin{DoxyCompactList}\small\item\em Create the \doxyref{R\+BF}{p.}{classmlpack_1_1ann_1_1RBF} object. \end{DoxyCompactList}\item 
\textbf{ R\+BF} (const size\+\_\+t in\+Size, const size\+\_\+t out\+Size, arma\+::mat \&centres, double betas=0)
\begin{DoxyCompactList}\small\item\em Create the Radial Basis Function layer object using the specified parameters. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Backward} (const arma\+::\+Mat$<$ eT $>$ \&, const arma\+::\+Mat$<$ eT $>$ \&, arma\+::\+Mat$<$ eT $>$ \&)
\begin{DoxyCompactList}\small\item\em Ordinary feed backward pass of the radial basis function. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Delta} () const
\begin{DoxyCompactList}\small\item\em Get the detla. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Delta} ()
\begin{DoxyCompactList}\small\item\em Modify the delta. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Forward} (const arma\+::\+Mat$<$ eT $>$ \&input, arma\+::\+Mat$<$ eT $>$ \&output)
\begin{DoxyCompactList}\small\item\em Ordinary feed forward pass of the radial basis function. \end{DoxyCompactList}\item 
Input\+Data\+Type const  \& \textbf{ Input\+Parameter} () const
\begin{DoxyCompactList}\small\item\em Get the parameters. \end{DoxyCompactList}\item 
Input\+Data\+Type \& \textbf{ Input\+Parameter} ()
\begin{DoxyCompactList}\small\item\em Modify the input parameter. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Input\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the input size. \end{DoxyCompactList}\item 
Output\+Data\+Type const  \& \textbf{ Output\+Parameter} () const
\begin{DoxyCompactList}\small\item\em Get the output parameter. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Output\+Parameter} ()
\begin{DoxyCompactList}\small\item\em Modify the output parameter. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Output\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the output size. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the layer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Input\+Data\+Type = arma\+::mat, typename Output\+Data\+Type = arma\+::mat, typename Activation = Gaussian\+Function$>$\newline
class mlpack\+::ann\+::\+R\+B\+F$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$}

Implementation of the Radial Basis Function layer. 

The \doxyref{R\+BF}{p.}{classmlpack_1_1ann_1_1RBF} class when use with a non-\/linear activation function acts as a Radial Basis Function which can be used with Feed-\/\+Forward neural network.

For more information, refer to the following paper,


\begin{DoxyCode}
@article\{Volume 51: Artificial Intelligence and Statistics,
  author  = \{Qichao Que, Mikhail Belkin\},
  title   = \{Back to the Future: Radial Basis Function Networks Revisited\},
  year    = \{2016\},
  url     = \{http:\textcolor{comment}{//proceedings.mlr.press/v51/que16.pdf\},}
\}
\end{DoxyCode}



\begin{DoxyTemplParams}{Template Parameters}
{\em Input\+Data\+Type} & Type of the input data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
{\em Output\+Data\+Type} & Type of the output data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
{\em Activation} & Type of the activation function (mlpack\+::ann\+::\+Gaussian). \\
\hline
\end{DoxyTemplParams}


Definition at line 87 of file layer\+\_\+types.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1RBF_ae44ef733c364ddb1a3b9202216ce100c}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!R\+BF@{R\+BF}}
\index{R\+BF@{R\+BF}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{R\+B\+F()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ R\+BF} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Create the \doxyref{R\+BF}{p.}{classmlpack_1_1ann_1_1RBF} object. 

\mbox{\label{classmlpack_1_1ann_1_1RBF_ad40154c64ad5a60b08248198f06eb3d2}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!R\+BF@{R\+BF}}
\index{R\+BF@{R\+BF}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{R\+B\+F()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ R\+BF} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{in\+Size,  }\item[{const size\+\_\+t}]{out\+Size,  }\item[{arma\+::mat \&}]{centres,  }\item[{double}]{betas = {\ttfamily 0} }\end{DoxyParamCaption})}



Create the Radial Basis Function layer object using the specified parameters. 


\begin{DoxyParams}{Parameters}
{\em in\+Size} & The number of input units. \\
\hline
{\em out\+Size} & The number of output units. \\
\hline
{\em centres} & The centres calculated using k-\/means of data. \\
\hline
{\em betas} & The beta value to be used with centres. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1RBF_a2eeb9b2b39181bce4c6a18783443636a}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Backward@{Backward}}
\index{Backward@{Backward}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Backward()}
{\footnotesize\ttfamily void Backward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{,  }\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{ }\end{DoxyParamCaption})}



Ordinary feed backward pass of the radial basis function. 

\mbox{\label{classmlpack_1_1ann_1_1RBF_a797f7edb44dd081e5e2b3cc316eef6bd}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the detla. 



Definition at line 109 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_ad6601342d560219ce951d554e69e5e87}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the delta. 



Definition at line 111 of file radial\+\_\+basis\+\_\+function.\+hpp.



References R\+B\+F$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$\+::serialize().

\mbox{\label{classmlpack_1_1ann_1_1RBF_a461f849bc638c15bec262dc9c3a58abe}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Forward@{Forward}}
\index{Forward@{Forward}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Forward()}
{\footnotesize\ttfamily void Forward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{input,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{output }\end{DoxyParamCaption})}



Ordinary feed forward pass of the radial basis function. 


\begin{DoxyParams}{Parameters}
{\em input} & Input data used for evaluating the specified function. \\
\hline
{\em output} & Resulting output activation. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1RBF_aaffd593b3ab627f8b5aae2a1f53634b0}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Input\+Parameter@{Input\+Parameter}}
\index{Input\+Parameter@{Input\+Parameter}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Input\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Input\+Data\+Type const\& Input\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the parameters. 

Get the input parameter. 

Definition at line 98 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_a063c3b1053c7979a7dd2e7bbd2bf1f8a}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Input\+Parameter@{Input\+Parameter}}
\index{Input\+Parameter@{Input\+Parameter}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Input\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Input\+Data\+Type\& Input\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the input parameter. 



Definition at line 100 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_a5a4c4984aa897a28d516e638e7ea5308}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Input\+Size@{Input\+Size}}
\index{Input\+Size@{Input\+Size}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Input\+Size()}
{\footnotesize\ttfamily size\+\_\+t Input\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the input size. 



Definition at line 103 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_a0ee21c2a36e5abad1e7a9d5dd00849f9}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type const\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the output parameter. 



Definition at line 92 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_a21d5f745f02c709625a4ee0907f004a5}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the output parameter. 



Definition at line 94 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_a99c1d948c984b9e76fb5e37e2145427a}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!Output\+Size@{Output\+Size}}
\index{Output\+Size@{Output\+Size}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{Output\+Size()}
{\footnotesize\ttfamily size\+\_\+t Output\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the output size. 



Definition at line 106 of file radial\+\_\+basis\+\_\+function.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1RBF_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::ann\+::\+R\+BF@{mlpack\+::ann\+::\+R\+BF}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})}



Serialize the layer. 



Referenced by R\+B\+F$<$ Input\+Data\+Type, Output\+Data\+Type, Activation $>$\+::\+Delta().



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+2/src/mlpack/methods/ann/layer/\textbf{ layer\+\_\+types.\+hpp}\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+2/src/mlpack/methods/ann/layer/\textbf{ radial\+\_\+basis\+\_\+function.\+hpp}\end{DoxyCompactItemize}
