\section{K\+D\+E\+Model Class Reference}
\label{classmlpack_1_1kde_1_1KDEModel}\index{K\+D\+E\+Model@{K\+D\+E\+Model}}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ Kernel\+Types} \{ \newline
\textbf{ G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}, 
\newline
\textbf{ E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL}, 
\newline
\textbf{ L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}, 
\newline
\textbf{ S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL}, 
\newline
\textbf{ T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL}
 \}
\item 
enum \textbf{ Tree\+Types} \{ \newline
\textbf{ K\+D\+\_\+\+T\+R\+EE}, 
\newline
\textbf{ B\+A\+L\+L\+\_\+\+T\+R\+EE}, 
\newline
\textbf{ C\+O\+V\+E\+R\+\_\+\+T\+R\+EE}, 
\newline
\textbf{ O\+C\+T\+R\+EE}, 
\newline
\textbf{ R\+\_\+\+T\+R\+EE}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ K\+D\+E\+Model} (const double bandwidth=1.\+0, const double rel\+Error=\textbf{ K\+D\+E\+Default\+Params\+::rel\+Error}, const double abs\+Error=\textbf{ K\+D\+E\+Default\+Params\+::abs\+Error}, const \textbf{ Kernel\+Types} kernel\+Type=Kernel\+Types\+::\+G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL, const \textbf{ Tree\+Types} tree\+Type=Tree\+Types\+::\+K\+D\+\_\+\+T\+R\+EE, const bool monte\+Carlo=\textbf{ K\+D\+E\+Default\+Params\+::mode}, const double mc\+Prob=\textbf{ K\+D\+E\+Default\+Params\+::mc\+Prob}, const size\+\_\+t initial\+Sample\+Size=\textbf{ K\+D\+E\+Default\+Params\+::initial\+Sample\+Size}, const double mc\+Entry\+Coef=\textbf{ K\+D\+E\+Default\+Params\+::mc\+Entry\+Coef}, const double mc\+Break\+Coef=\textbf{ K\+D\+E\+Default\+Params\+::mc\+Break\+Coef})
\begin{DoxyCompactList}\small\item\em Initialize \doxyref{K\+D\+E\+Model}{p.}{classmlpack_1_1kde_1_1KDEModel}. \end{DoxyCompactList}\item 
\textbf{ K\+D\+E\+Model} (const \textbf{ K\+D\+E\+Model} \&other)
\begin{DoxyCompactList}\small\item\em Copy constructor of the given model. \end{DoxyCompactList}\item 
\textbf{ K\+D\+E\+Model} (\textbf{ K\+D\+E\+Model} \&\&other)
\begin{DoxyCompactList}\small\item\em Move constructor of the given model. Takes ownership of the model. \end{DoxyCompactList}\item 
\textbf{ $\sim$\+K\+D\+E\+Model} ()
\begin{DoxyCompactList}\small\item\em Destroy the \doxyref{K\+D\+E\+Model}{p.}{classmlpack_1_1kde_1_1KDEModel} object. \end{DoxyCompactList}\item 
double \textbf{ Absolute\+Error} () const
\begin{DoxyCompactList}\small\item\em Get the absolute error tolerance. \end{DoxyCompactList}\item 
void \textbf{ Absolute\+Error} (const double new\+Abs\+Error)
\begin{DoxyCompactList}\small\item\em Modify the absolute error tolerance. \end{DoxyCompactList}\item 
double \textbf{ Bandwidth} () const
\begin{DoxyCompactList}\small\item\em Get the bandwidth of the kernel. \end{DoxyCompactList}\item 
void \textbf{ Bandwidth} (const double new\+Bandwidth)
\begin{DoxyCompactList}\small\item\em Modify the bandwidth of the kernel. \end{DoxyCompactList}\item 
void \textbf{ Build\+Model} (arma\+::mat \&\&reference\+Set)
\begin{DoxyCompactList}\small\item\em Build the \doxyref{K\+DE}{p.}{classmlpack_1_1kde_1_1KDE} model with the given parameters and then trains it with the given reference data. \end{DoxyCompactList}\item 
void \textbf{ Evaluate} (arma\+::mat \&\&query\+Set, arma\+::vec \&estimations)
\begin{DoxyCompactList}\small\item\em Perform kernel density estimation on the given query set. \end{DoxyCompactList}\item 
void \textbf{ Evaluate} (arma\+::vec \&estimations)
\begin{DoxyCompactList}\small\item\em Perform kernel density estimation on the reference set. \end{DoxyCompactList}\item 
\textbf{ Kernel\+Types} \textbf{ Kernel\+Type} () const
\begin{DoxyCompactList}\small\item\em Get the kernel type of the model. \end{DoxyCompactList}\item 
\textbf{ Kernel\+Types} \& \textbf{ Kernel\+Type} ()
\begin{DoxyCompactList}\small\item\em Modify the kernel type of the model. \end{DoxyCompactList}\item 
double \textbf{ M\+C\+Break\+Coefficient} () const
\begin{DoxyCompactList}\small\item\em Get Monte Carlo break coefficient. \end{DoxyCompactList}\item 
void \textbf{ M\+C\+Break\+Coefficient} (const double new\+Break\+Coef)
\begin{DoxyCompactList}\small\item\em Modify Monte Carlo break coefficient. \end{DoxyCompactList}\item 
double \textbf{ M\+C\+Entry\+Coefficient} () const
\begin{DoxyCompactList}\small\item\em Get Monte Carlo entry coefficient. \end{DoxyCompactList}\item 
void \textbf{ M\+C\+Entry\+Coefficient} (const double new\+Entry\+Coef)
\begin{DoxyCompactList}\small\item\em Modify Monte Carlo entry coefficient. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ M\+C\+Initial\+Sample\+Size} () const
\begin{DoxyCompactList}\small\item\em Get the initial sample size for Monte Carlo estimations. \end{DoxyCompactList}\item 
void \textbf{ M\+C\+Initial\+Sample\+Size} (const size\+\_\+t new\+Sample\+Size)
\begin{DoxyCompactList}\small\item\em Modify the initial sample size for Monte Carlo estimations. \end{DoxyCompactList}\item 
double \textbf{ M\+C\+Probability} () const
\begin{DoxyCompactList}\small\item\em Get Monte Carlo probability of error being bounded by relative error. \end{DoxyCompactList}\item 
void \textbf{ M\+C\+Probability} (const double new\+M\+C\+Prob)
\begin{DoxyCompactList}\small\item\em Modify Monte Carlo probability of error being bounded by relative error. \end{DoxyCompactList}\item 
\textbf{ K\+D\+E\+Mode} \textbf{ Mode} () const
\begin{DoxyCompactList}\small\item\em Get the mode of the model. \end{DoxyCompactList}\item 
\textbf{ K\+D\+E\+Mode} \& \textbf{ Mode} ()
\begin{DoxyCompactList}\small\item\em Modify the mode of the model. \end{DoxyCompactList}\item 
bool \textbf{ Monte\+Carlo} () const
\begin{DoxyCompactList}\small\item\em Get whether the model is using Monte Carlo estimations or not. \end{DoxyCompactList}\item 
void \textbf{ Monte\+Carlo} (const bool new\+Monte\+Carlo)
\begin{DoxyCompactList}\small\item\em Modify whether the model is using Monte Carlo estimations or not. \end{DoxyCompactList}\item 
\textbf{ K\+D\+E\+Model} \& \textbf{ operator=} (\textbf{ K\+D\+E\+Model} other)
\begin{DoxyCompactList}\small\item\em Copy the given model. \end{DoxyCompactList}\item 
double \textbf{ Relative\+Error} () const
\begin{DoxyCompactList}\small\item\em Get the relative error tolerance. \end{DoxyCompactList}\item 
void \textbf{ Relative\+Error} (const double new\+Rel\+Error)
\begin{DoxyCompactList}\small\item\em Modify the relative error tolerance. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int version)
\begin{DoxyCompactList}\small\item\em Serialize the \doxyref{K\+DE}{p.}{classmlpack_1_1kde_1_1KDE} model. \end{DoxyCompactList}\item 
\textbf{ Tree\+Types} \textbf{ Tree\+Type} () const
\begin{DoxyCompactList}\small\item\em Get the tree type of the model. \end{DoxyCompactList}\item 
\textbf{ Tree\+Types} \& \textbf{ Tree\+Type} ()
\begin{DoxyCompactList}\small\item\em Modify the tree type of the model. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 362 of file kde\+\_\+model.\+hpp.



\subsection{Member Enumeration Documentation}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Kernel\+Types@{Kernel\+Types}}
\index{Kernel\+Types@{Kernel\+Types}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Kernel\+Types}
{\footnotesize\ttfamily enum \textbf{ Kernel\+Types}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL@{G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL@{G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61af52665cc69ef62c8ad00a49c8e259c13}} 
G\+A\+U\+S\+S\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL@{E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL@{E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61af0f03a73eb0dce407b0b027dc8f98cdc}} 
E\+P\+A\+N\+E\+C\+H\+N\+I\+K\+O\+V\+\_\+\+K\+E\+R\+N\+EL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL@{L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL@{L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61ac188c6a7e514f7ccf2fc1ac5160e30c6}} 
L\+A\+P\+L\+A\+C\+I\+A\+N\+\_\+\+K\+E\+R\+N\+EL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL@{S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL@{S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61aa2896ec0bb1099c97a137e4ca80bdc9b}} 
S\+P\+H\+E\+R\+I\+C\+A\+L\+\_\+\+K\+E\+R\+N\+EL&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL@{T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL@{T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0d0c6dc6893ad3824d5d31d87e69fb61a54d012af1c18f0d33fc7b76ee3d164fe}} 
T\+R\+I\+A\+N\+G\+U\+L\+A\+R\+\_\+\+K\+E\+R\+N\+EL&\\
\hline

\end{DoxyEnumFields}


Definition at line 374 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8d}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Tree\+Types@{Tree\+Types}}
\index{Tree\+Types@{Tree\+Types}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Tree\+Types}
{\footnotesize\ttfamily enum \textbf{ Tree\+Types}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{K\+D\+\_\+\+T\+R\+EE@{K\+D\+\_\+\+T\+R\+EE}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!K\+D\+\_\+\+T\+R\+EE@{K\+D\+\_\+\+T\+R\+EE}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8daa688e9cd1158916bc183aa517724568c}} 
K\+D\+\_\+\+T\+R\+EE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{B\+A\+L\+L\+\_\+\+T\+R\+EE@{B\+A\+L\+L\+\_\+\+T\+R\+EE}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!B\+A\+L\+L\+\_\+\+T\+R\+EE@{B\+A\+L\+L\+\_\+\+T\+R\+EE}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8da994ef1bcca8841d5b7d1431b99fcb10d}} 
B\+A\+L\+L\+\_\+\+T\+R\+EE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{C\+O\+V\+E\+R\+\_\+\+T\+R\+EE@{C\+O\+V\+E\+R\+\_\+\+T\+R\+EE}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!C\+O\+V\+E\+R\+\_\+\+T\+R\+EE@{C\+O\+V\+E\+R\+\_\+\+T\+R\+EE}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8da92f172b47c8ae18ed401f8bf9f5ecad3}} 
C\+O\+V\+E\+R\+\_\+\+T\+R\+EE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{O\+C\+T\+R\+EE@{O\+C\+T\+R\+EE}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!O\+C\+T\+R\+EE@{O\+C\+T\+R\+EE}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8daabefbb1ea7a801b1b00c9b0709dcec50}} 
O\+C\+T\+R\+EE&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{R\+\_\+\+T\+R\+EE@{R\+\_\+\+T\+R\+EE}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!R\+\_\+\+T\+R\+EE@{R\+\_\+\+T\+R\+EE}}}\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6597b8539c6114170dc185d332ba4c8da2a93dc779a94d5f09b72ffbdc5ac9cd9}} 
R\+\_\+\+T\+R\+EE&\\
\hline

\end{DoxyEnumFields}


Definition at line 365 of file kde\+\_\+model.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a231a4c7043e722e0615c30195dc8253b}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!K\+D\+E\+Model@{K\+D\+E\+Model}}
\index{K\+D\+E\+Model@{K\+D\+E\+Model}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{K\+D\+E\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Model} (\begin{DoxyParamCaption}\item[{const double}]{bandwidth = {\ttfamily 1.0},  }\item[{const double}]{rel\+Error = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::rel\+Error}},  }\item[{const double}]{abs\+Error = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::abs\+Error}},  }\item[{const \textbf{ Kernel\+Types}}]{kernel\+Type = {\ttfamily KernelTypes\+:\+:GAUSSIAN\+\_\+KERNEL},  }\item[{const \textbf{ Tree\+Types}}]{tree\+Type = {\ttfamily TreeTypes\+:\+:KD\+\_\+TREE},  }\item[{const bool}]{monte\+Carlo = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::mode}},  }\item[{const double}]{mc\+Prob = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::mc\+Prob}},  }\item[{const size\+\_\+t}]{initial\+Sample\+Size = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::initial\+Sample\+Size}},  }\item[{const double}]{mc\+Entry\+Coef = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::mc\+Entry\+Coef}},  }\item[{const double}]{mc\+Break\+Coef = {\ttfamily \textbf{ K\+D\+E\+Default\+Params\+::mc\+Break\+Coef}} }\end{DoxyParamCaption})}



Initialize \doxyref{K\+D\+E\+Model}{p.}{classmlpack_1_1kde_1_1KDEModel}. 


\begin{DoxyParams}{Parameters}
{\em bandwidth} & Bandwidth to use for the kernel. \\
\hline
{\em rel\+Error} & Maximum relative error tolerance for each point in the model. For example, 0.\+05 means that each value must be within 5\% of the true \doxyref{K\+DE}{p.}{classmlpack_1_1kde_1_1KDE} value. \\
\hline
{\em abs\+Error} & Maximum absolute error tolerance for each point in the model. For example, 0.\+1 means that for each point the value can have a maximum error of 0.\+1 units. \\
\hline
{\em kernel\+Type} & Type of kernel to use. \\
\hline
{\em tree\+Type} & Type of tree to use. \\
\hline
{\em monte\+Carlo} & Whether to use Monte Carlo estimations when possible. \\
\hline
{\em mc\+Prob} & of a Monte Carlo estimation to be bounded by relative error tolerance. \\
\hline
{\em initial\+Sample\+Size} & Initial sample size for Monte Carlo estimations. \\
\hline
{\em mc\+Entry\+Coef} & Coefficient to control how much larger does the amount of node descendants has to be compared to the initial sample size in order for it to be a candidate for Monte Carlo estimations. \\
\hline
{\em mc\+Break\+Coef} & Coefficient to control what fraction of the node\textquotesingle{}s descendants evaluated is the limit before Monte Carlo estimation recurses. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ae0feb41c790cd66b73b9b80ebfee3eee}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!K\+D\+E\+Model@{K\+D\+E\+Model}}
\index{K\+D\+E\+Model@{K\+D\+E\+Model}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{K\+D\+E\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Model} (\begin{DoxyParamCaption}\item[{const \textbf{ K\+D\+E\+Model} \&}]{other }\end{DoxyParamCaption})}



Copy constructor of the given model. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ae8c4ef0a1a70cf8f40d81741998ab553}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!K\+D\+E\+Model@{K\+D\+E\+Model}}
\index{K\+D\+E\+Model@{K\+D\+E\+Model}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{K\+D\+E\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Model} (\begin{DoxyParamCaption}\item[{\textbf{ K\+D\+E\+Model} \&\&}]{other }\end{DoxyParamCaption})}



Move constructor of the given model. Takes ownership of the model. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ad8baf08396802e5c81a0231298c676f3}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!````~K\+D\+E\+Model@{$\sim$\+K\+D\+E\+Model}}
\index{````~K\+D\+E\+Model@{$\sim$\+K\+D\+E\+Model}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{$\sim$\+K\+D\+E\+Model()}
{\footnotesize\ttfamily $\sim$\textbf{ K\+D\+E\+Model} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destroy the \doxyref{K\+D\+E\+Model}{p.}{classmlpack_1_1kde_1_1KDEModel} object. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_aca74512f13027b15d913461e55df3da2}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Absolute\+Error@{Absolute\+Error}}
\index{Absolute\+Error@{Absolute\+Error}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Absolute\+Error()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double Absolute\+Error (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the absolute error tolerance. 



Definition at line 516 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a483f08ac8e9153c13d41e251c99d60b7}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Absolute\+Error@{Absolute\+Error}}
\index{Absolute\+Error@{Absolute\+Error}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Absolute\+Error()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Absolute\+Error (\begin{DoxyParamCaption}\item[{const double}]{new\+Abs\+Error }\end{DoxyParamCaption})}



Modify the absolute error tolerance. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ae9cbd816179d6c36036139ccc8fea8c8}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Bandwidth@{Bandwidth}}
\index{Bandwidth@{Bandwidth}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Bandwidth()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double Bandwidth (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the bandwidth of the kernel. 



Definition at line 504 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a7895968fbbc5b94d25fffbc285a8c5cd}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Bandwidth@{Bandwidth}}
\index{Bandwidth@{Bandwidth}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Bandwidth()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Bandwidth (\begin{DoxyParamCaption}\item[{const double}]{new\+Bandwidth }\end{DoxyParamCaption})}



Modify the bandwidth of the kernel. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a746b74589783efc0ac89f108ee92cca3}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Build\+Model@{Build\+Model}}
\index{Build\+Model@{Build\+Model}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Build\+Model()}
{\footnotesize\ttfamily void Build\+Model (\begin{DoxyParamCaption}\item[{arma\+::mat \&\&}]{reference\+Set }\end{DoxyParamCaption})}



Build the \doxyref{K\+DE}{p.}{classmlpack_1_1kde_1_1KDE} model with the given parameters and then trains it with the given reference data. 

Takes possession of the reference set to avoid a copy, so the reference set will not be usable after this.


\begin{DoxyParams}{Parameters}
{\em reference\+Set} & Set of reference points. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_af7194c84540dfed2a4aabf1c03acef47}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Evaluate@{Evaluate}}
\index{Evaluate@{Evaluate}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Evaluate()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Evaluate (\begin{DoxyParamCaption}\item[{arma\+::mat \&\&}]{query\+Set,  }\item[{arma\+::vec \&}]{estimations }\end{DoxyParamCaption})}



Perform kernel density estimation on the given query set. 

Takes possession of the query set to avoid a copy, so the query set will not be usable after this. If possible, it returns normalized estimations.

\begin{DoxyPrecond}{Precondition}
The model has to be previously created with Build\+Model. 
\end{DoxyPrecond}

\begin{DoxyParams}{Parameters}
{\em query\+Set} & Set of query points. \\
\hline
{\em estimations} & Vector where the results will be stored in the same order as the query points. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a995ae5cd93b97b9b96f4fb9b87c427c9}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Evaluate@{Evaluate}}
\index{Evaluate@{Evaluate}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Evaluate()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Evaluate (\begin{DoxyParamCaption}\item[{arma\+::vec \&}]{estimations }\end{DoxyParamCaption})}



Perform kernel density estimation on the reference set. 

If possible, it returns normalized estimations.

\begin{DoxyPrecond}{Precondition}
The model has to be previously created with Build\+Model. 
\end{DoxyPrecond}

\begin{DoxyParams}{Parameters}
{\em estimations} & Vector where the results will be stored in the same order as the query points. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0f08fc745756dd035dcf6b42dddd4ed5}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Kernel\+Type@{Kernel\+Type}}
\index{Kernel\+Type@{Kernel\+Type}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Kernel\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Kernel\+Types} Kernel\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the kernel type of the model. 



Definition at line 528 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ad94d196c8fc2a42899de31332737dbf9}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Kernel\+Type@{Kernel\+Type}}
\index{Kernel\+Type@{Kernel\+Type}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Kernel\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Kernel\+Types}\& Kernel\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the kernel type of the model. 



Definition at line 531 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a9c0a8d126dc31ef5571d89a1d8b6652a}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Break\+Coefficient@{M\+C\+Break\+Coefficient}}
\index{M\+C\+Break\+Coefficient@{M\+C\+Break\+Coefficient}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Break\+Coefficient()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double M\+C\+Break\+Coefficient (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get Monte Carlo break coefficient. 



Definition at line 558 of file kde\+\_\+model.\+hpp.



References B\+O\+O\+S\+T\+\_\+\+T\+E\+M\+P\+L\+A\+T\+E\+\_\+\+C\+L\+A\+S\+S\+\_\+\+V\+E\+R\+S\+I\+O\+N(), and mlpack\+::bindings\+::tests\+::\+Clean\+Memory().

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a37b06524e3ce6a667818ccd97ca3e7f0}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Break\+Coefficient@{M\+C\+Break\+Coefficient}}
\index{M\+C\+Break\+Coefficient@{M\+C\+Break\+Coefficient}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Break\+Coefficient()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void M\+C\+Break\+Coefficient (\begin{DoxyParamCaption}\item[{const double}]{new\+Break\+Coef }\end{DoxyParamCaption})}



Modify Monte Carlo break coefficient. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a0bd2b747cf6abfefe9095240199da326}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Entry\+Coefficient@{M\+C\+Entry\+Coefficient}}
\index{M\+C\+Entry\+Coefficient@{M\+C\+Entry\+Coefficient}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Entry\+Coefficient()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double M\+C\+Entry\+Coefficient (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get Monte Carlo entry coefficient. 



Definition at line 552 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a8d16364dbe5a0bc7c5588cb2ba7cfb8f}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Entry\+Coefficient@{M\+C\+Entry\+Coefficient}}
\index{M\+C\+Entry\+Coefficient@{M\+C\+Entry\+Coefficient}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Entry\+Coefficient()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void M\+C\+Entry\+Coefficient (\begin{DoxyParamCaption}\item[{const double}]{new\+Entry\+Coef }\end{DoxyParamCaption})}



Modify Monte Carlo entry coefficient. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a9c03312f8ff7dec25f32ba59dac70881}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Initial\+Sample\+Size@{M\+C\+Initial\+Sample\+Size}}
\index{M\+C\+Initial\+Sample\+Size@{M\+C\+Initial\+Sample\+Size}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Initial\+Sample\+Size()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t M\+C\+Initial\+Sample\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the initial sample size for Monte Carlo estimations. 



Definition at line 546 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_af2700f342fa534312acc8a8387847408}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Initial\+Sample\+Size@{M\+C\+Initial\+Sample\+Size}}
\index{M\+C\+Initial\+Sample\+Size@{M\+C\+Initial\+Sample\+Size}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Initial\+Sample\+Size()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void M\+C\+Initial\+Sample\+Size (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{new\+Sample\+Size }\end{DoxyParamCaption})}



Modify the initial sample size for Monte Carlo estimations. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a539085b4f4f70fecec611fc7415d0299}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Probability@{M\+C\+Probability}}
\index{M\+C\+Probability@{M\+C\+Probability}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Probability()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double M\+C\+Probability (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get Monte Carlo probability of error being bounded by relative error. 



Definition at line 540 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_ae8fd2bcc35a81f8b68d3244ed8d89bc1}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!M\+C\+Probability@{M\+C\+Probability}}
\index{M\+C\+Probability@{M\+C\+Probability}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{M\+C\+Probability()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void M\+C\+Probability (\begin{DoxyParamCaption}\item[{const double}]{new\+M\+C\+Prob }\end{DoxyParamCaption})}



Modify Monte Carlo probability of error being bounded by relative error. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a6f3cb532b850ad02807a209193ff2289}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Mode@{Mode}}
\index{Mode@{Mode}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Mode()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Mode} Mode (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Get the mode of the model. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a94b40037a0d33cbb55823d5c36d677a7}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Mode@{Mode}}
\index{Mode@{Mode}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Mode()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Mode}\& Mode (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Modify the mode of the model. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_aa7ca7b5a3a96b5603461debdc82f3c3e}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Monte\+Carlo@{Monte\+Carlo}}
\index{Monte\+Carlo@{Monte\+Carlo}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Monte\+Carlo()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Monte\+Carlo (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get whether the model is using Monte Carlo estimations or not. 



Definition at line 534 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a3640495dcb137b48ad03c29a26fe4080}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Monte\+Carlo@{Monte\+Carlo}}
\index{Monte\+Carlo@{Monte\+Carlo}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Monte\+Carlo()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Monte\+Carlo (\begin{DoxyParamCaption}\item[{const bool}]{new\+Monte\+Carlo }\end{DoxyParamCaption})}



Modify whether the model is using Monte Carlo estimations or not. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a09ed7d8494b5b8f8a872012ece279ffa}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!operator=@{operator=}}
\index{operator=@{operator=}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{operator=()}
{\footnotesize\ttfamily \textbf{ K\+D\+E\+Model}\& operator= (\begin{DoxyParamCaption}\item[{\textbf{ K\+D\+E\+Model}}]{other }\end{DoxyParamCaption})}



Copy the given model. 

Use std\+::move if the object to copy is no longer needed.


\begin{DoxyParams}{Parameters}
{\em other} & \doxyref{K\+D\+E\+Model}{p.}{classmlpack_1_1kde_1_1KDEModel} to copy. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a2cd3d49a6dcafe980d0734421d296828}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Relative\+Error@{Relative\+Error}}
\index{Relative\+Error@{Relative\+Error}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Relative\+Error()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily double Relative\+Error (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the relative error tolerance. 



Definition at line 510 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a24a6ffff18a48102087ee7fc3339717d}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Relative\+Error@{Relative\+Error}}
\index{Relative\+Error@{Relative\+Error}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Relative\+Error()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Relative\+Error (\begin{DoxyParamCaption}\item[{const double}]{new\+Rel\+Error }\end{DoxyParamCaption})}



Modify the relative error tolerance. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a68e832cb064e3b7ca978d8e5911cf700}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned int}]{version }\end{DoxyParamCaption})}



Serialize the \doxyref{K\+DE}{p.}{classmlpack_1_1kde_1_1KDE} model. 

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_adb3d0b75d7754ec6741d890232576ffc}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Tree\+Type@{Tree\+Type}}
\index{Tree\+Type@{Tree\+Type}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Tree\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Tree\+Types} Tree\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the tree type of the model. 



Definition at line 522 of file kde\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1kde_1_1KDEModel_a56b0460c7769ea1ef9d8314026ef36c6}} 
\index{mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}!Tree\+Type@{Tree\+Type}}
\index{Tree\+Type@{Tree\+Type}!mlpack\+::kde\+::\+K\+D\+E\+Model@{mlpack\+::kde\+::\+K\+D\+E\+Model}}
\subsubsection{Tree\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Tree\+Types}\& Tree\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the tree type of the model. 



Definition at line 525 of file kde\+\_\+model.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/kde/\textbf{ kde\+\_\+model.\+hpp}\end{DoxyCompactItemize}
