\hypertarget{a00948}{\section{Pca\+:\+:P\+C\+A$<$ Vector\+T $>$ Class Template Reference}
\label{a00948}\index{Pca\+::\+P\+C\+A$<$ Vector\+T $>$@{Pca\+::\+P\+C\+A$<$ Vector\+T $>$}}
}


Class for principal component Analysis.  




{\ttfamily \#include $<$/\+P\+C\+A.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00948_a6db24ac413fc41814076cadb5c867b06}{\hyperlink{a00948_a6db24ac413fc41814076cadb5c867b06}{P\+C\+A} ()}\label{a00948_a6db24ac413fc41814076cadb5c867b06}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{a00948_a0c1939265897b2e5fb14fcef0eeceaa0}{P\+C\+A} (std\+::vector$<$ \hyperlink{a01410}{Vector\+T} $>$ \&\+\_\+points, \hyperlink{a01410}{Vector\+T} \&\+\_\+first, \hyperlink{a01410}{Vector\+T} \&\+\_\+second, \hyperlink{a01410}{Vector\+T} \&\+\_\+third)
\item 
\hypertarget{a00948_a976da0a0cf26f7cbc2b7cbbe04af5843}{\hyperlink{a00948_a976da0a0cf26f7cbc2b7cbbe04af5843}{$\sim$\+P\+C\+A} ()}\label{a00948_a976da0a0cf26f7cbc2b7cbbe04af5843}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hyperlink{a01410}{Vector\+T} \hyperlink{a00948_afaf84da9303f5a30e70eff1562920612}{center\+\_\+of\+\_\+gravity} (const std\+::vector$<$ \hyperlink{a01410}{Vector\+T} $>$ \&\+\_\+points)
\item 
void \hyperlink{a00948_a90bab982beed3553f0c1ab746be21a60}{pca} (std\+::vector$<$ \hyperlink{a01410}{Vector\+T} $>$ \&\+\_\+points, \hyperlink{a01410}{Vector\+T} \&\+\_\+first, \hyperlink{a01410}{Vector\+T} \&\+\_\+second, \hyperlink{a01410}{Vector\+T} \&\+\_\+third)
\item 
\hypertarget{a00948_aabef20b2b23f4b4c25a220b4d8d556b0}{std\+::vector$<$ double $>$ \& {\bfseries get\+Last\+Eigen\+Values} ()}\label{a00948_aabef20b2b23f4b4c25a220b4d8d556b0}

\item 
\hypertarget{a00948_a23e38fa78d2e816e5f077b434cc73dec}{bool {\bfseries Sym\+Right\+Eigenproblem} (Matrix \&\+\_\+mat\+\_\+\+A, Matrix \&\+\_\+mat\+\_\+\+V\+R, std\+::vector$<$ double $>$ \&\+\_\+vec\+\_\+\+E\+V)}\label{a00948_a23e38fa78d2e816e5f077b434cc73dec}

\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00948_a48e9bf0bde4d14c1cc1e464173f2f21b}{typedef gmm\+::dense\+\_\+matrix$<$ double $>$ {\bfseries Matrix}}\label{a00948_a48e9bf0bde4d14c1cc1e464173f2f21b}

\item 
\hypertarget{a00948_a954feb96e98acc8fb669225966f1f016}{typedef std\+::vector$<$ double $>$ {\bfseries Vector}}\label{a00948_a954feb96e98acc8fb669225966f1f016}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00948_a3812d5cba10aa4db317a2269d2dbac26}{std\+::vector$<$ double $>$ {\bfseries last\+Eigen\+Values\+\_\+}}\label{a00948_a3812d5cba10aa4db317a2269d2dbac26}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Vector\+T$>$class Pca\+::\+P\+C\+A$<$ Vector\+T $>$}

Class for principal component Analysis. 

Class for principal component Analysis 

Definition at line 89 of file P\+C\+A.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00948_a0c1939265897b2e5fb14fcef0eeceaa0}{\index{Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}!P\+C\+A@{P\+C\+A}}
\index{P\+C\+A@{P\+C\+A}!Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}}
\subsubsection[{P\+C\+A}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Vector\+T $>$ {\bf Pca\+::\+P\+C\+A}$<$ {\bf Vector\+T} $>$\+::{\bf P\+C\+A} (
\begin{DoxyParamCaption}
\item[{std\+::vector$<$ {\bf Vector\+T} $>$ \&}]{\+\_\+points, }
\item[{{\bf Vector\+T} \&}]{\+\_\+first, }
\item[{{\bf Vector\+T} \&}]{\+\_\+second, }
\item[{{\bf Vector\+T} \&}]{\+\_\+third}
\end{DoxyParamCaption}
)}}\label{a00948_a0c1939265897b2e5fb14fcef0eeceaa0}
Extended constructor Parameters \+: see \hyperlink{a00948_a90bab982beed3553f0c1ab746be21a60}{pca()} 

Definition at line 91 of file P\+C\+A.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a00948_afaf84da9303f5a30e70eff1562920612}{\index{Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}!center\+\_\+of\+\_\+gravity@{center\+\_\+of\+\_\+gravity}}
\index{center\+\_\+of\+\_\+gravity@{center\+\_\+of\+\_\+gravity}!Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}}
\subsubsection[{center\+\_\+of\+\_\+gravity}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Vector\+T $>$ {\bf Vector\+T} {\bf Pca\+::\+P\+C\+A}$<$ {\bf Vector\+T} $>$\+::center\+\_\+of\+\_\+gravity (
\begin{DoxyParamCaption}
\item[{const std\+::vector$<$ {\bf Vector\+T} $>$ \&}]{\+\_\+points}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00948_afaf84da9303f5a30e70eff1562920612}
Compute center of gravity for a vector of points 
\begin{DoxyParams}{Parameters}
{\em \+\_\+points} & set of points \\
\hline
\end{DoxyParams}


Definition at line 110 of file P\+C\+A.\+cc.

\hypertarget{a00948_a90bab982beed3553f0c1ab746be21a60}{\index{Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}!pca@{pca}}
\index{pca@{pca}!Pca\+::\+P\+C\+A@{Pca\+::\+P\+C\+A}}
\subsubsection[{pca}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Vector\+T $>$ void {\bf Pca\+::\+P\+C\+A}$<$ {\bf Vector\+T} $>$\+::pca (
\begin{DoxyParamCaption}
\item[{std\+::vector$<$ {\bf Vector\+T} $>$ \&}]{\+\_\+points, }
\item[{{\bf Vector\+T} \&}]{\+\_\+first, }
\item[{{\bf Vector\+T} \&}]{\+\_\+second, }
\item[{{\bf Vector\+T} \&}]{\+\_\+third}
\end{DoxyParamCaption}
)}}\label{a00948_a90bab982beed3553f0c1ab746be21a60}
Compute the principal component analysys for a vector of points 
\begin{DoxyParams}{Parameters}
{\em \+\_\+points} & set of points \\
\hline
{\em \+\_\+first} & First main axis \\
\hline
{\em \+\_\+second} & second main axis \\
\hline
{\em \+\_\+third} & third main axis \\
\hline
\end{DoxyParams}


Definition at line 175 of file P\+C\+A.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Math\+\_\+\+Tools/\+P\+C\+A/\hyperlink{a02239}{P\+C\+A.\+hh}\item 
Math\+\_\+\+Tools/\+P\+C\+A/P\+C\+A.\+cc\end{DoxyCompactItemize}
