Fn_princomp

Functions

template<typename T1 >
void princomp (Mat< typename T1::elem_type > &coeff_out, Mat< typename T1::elem_type > &score_out, Col< typename T1::pod_type > &latent_out, Col< typename T1::elem_type > &tsquared_out, const Base< typename T1::elem_type, T1 > &X)
 principal component analysis -- 4 arguments version coeff_out -> principal component coefficients score_out -> projected samples latent_out -> eigenvalues of principal vectors tsquared_out -> Hotelling's T^2 statistic
template<typename T1 >
void princomp (Mat< typename T1::elem_type > &coeff_out, Mat< typename T1::elem_type > &score_out, Col< typename T1::pod_type > &latent_out, const Base< typename T1::elem_type, T1 > &X)
 principal component analysis -- 3 arguments version coeff_out -> principal component coefficients score_out -> projected samples latent_out -> eigenvalues of principal vectors
template<typename T1 >
void princomp (Mat< typename T1::elem_type > &coeff_out, Mat< typename T1::elem_type > &score_out, const Base< typename T1::elem_type, T1 > &X)
 principal component analysis -- 2 arguments version coeff_out -> principal component coefficients score_out -> projected samples
template<typename T1 >
const Op< T1, op_princompprincomp (const Base< typename T1::elem_type, T1 > &X)
 principal component analysis -- 1 argument version coeff_out -> principal component coefficients

Function Documentation

template<typename T1 >
void princomp ( Mat< typename T1::elem_type > &  coeff_out,
Mat< typename T1::elem_type > &  score_out,
Col< typename T1::pod_type > &  latent_out,
Col< typename T1::elem_type > &  tsquared_out,
const Base< typename T1::elem_type, T1 > &  X 
) [inline]

principal component analysis -- 4 arguments version coeff_out -> principal component coefficients score_out -> projected samples latent_out -> eigenvalues of principal vectors tsquared_out -> Hotelling's T^2 statistic

Definition at line 33 of file fn_princomp.hpp.

References op_princomp::direct_princomp(), and Base< elem_type, derived >::get_ref().

00040   {
00041   arma_extra_debug_sigprint();
00042   
00043   typedef typename T1::elem_type eT;
00044   
00045   const unwrap<T1>   tmp(X.get_ref());
00046   const Mat<eT>& A = tmp.M;
00047   
00048   op_princomp::direct_princomp(coeff_out, score_out, latent_out, tsquared_out, A);
00049   }

template<typename T1 >
void princomp ( Mat< typename T1::elem_type > &  coeff_out,
Mat< typename T1::elem_type > &  score_out,
Col< typename T1::pod_type > &  latent_out,
const Base< typename T1::elem_type, T1 > &  X 
) [inline]

principal component analysis -- 3 arguments version coeff_out -> principal component coefficients score_out -> projected samples latent_out -> eigenvalues of principal vectors

Definition at line 62 of file fn_princomp.hpp.

References op_princomp::direct_princomp(), and Base< elem_type, derived >::get_ref().

00068   {
00069   arma_extra_debug_sigprint();
00070   
00071   typedef typename T1::elem_type eT;
00072   
00073   const unwrap<T1>   tmp(X.get_ref());
00074   const Mat<eT>& A = tmp.M;
00075   
00076   op_princomp::direct_princomp(coeff_out, score_out, latent_out, A); 
00077   }

template<typename T1 >
void princomp ( Mat< typename T1::elem_type > &  coeff_out,
Mat< typename T1::elem_type > &  score_out,
const Base< typename T1::elem_type, T1 > &  X 
) [inline]

principal component analysis -- 2 arguments version coeff_out -> principal component coefficients score_out -> projected samples

Definition at line 89 of file fn_princomp.hpp.

References op_princomp::direct_princomp(), and Base< elem_type, derived >::get_ref().

00094   {
00095   arma_extra_debug_sigprint();
00096   
00097   typedef typename T1::elem_type eT;
00098   
00099   const unwrap<T1>   tmp(X.get_ref());
00100   const Mat<eT>& A = tmp.M;
00101   
00102   op_princomp::direct_princomp(coeff_out, score_out, A); 
00103   }

template<typename T1 >
const Op<T1, op_princomp> princomp ( const Base< typename T1::elem_type, T1 > &  X  )  [inline]

principal component analysis -- 1 argument version coeff_out -> principal component coefficients

Definition at line 113 of file fn_princomp.hpp.

References Base< elem_type, derived >::get_ref().

00114   {
00115   arma_extra_debug_sigprint();
00116 
00117   return Op<T1, op_princomp>(X.get_ref());
00118   }