Fn_princomp_cov

Functions

template<typename T1 >
void princomp_cov (Mat< typename T1::elem_type > &coeff_out, Col< typename T1::pod_type > &latent_out, Col< typename T1::pod_type > &explained_out, const Base< typename T1::elem_type, T1 > &X, const typename arma_blas_type_only< typename T1::elem_type >::result *junk=0)
 principal component analysis of a covariance matrix -- 3 arguments version coeff_out -> principal component coefficients latent_out -> principal component variances explained_out -> percentage of the total variance explained by each principal component.
template<typename T1 >
void princomp_cov (Mat< typename T1::elem_type > &coeff_out, Col< typename T1::pod_type > &latent_out, const Base< typename T1::elem_type, T1 > &X, const typename arma_blas_type_only< typename T1::elem_type >::result *junk=0)
 principal component analysis of a covariance matrix -- 2 arguments version coeff_out -> principal component coefficients latent_out -> principal component variances
template<typename T1 >
const Op< T1, op_princomp_covprincomp_cov (const Base< typename T1::elem_type, T1 > &X, const typename arma_blas_type_only< typename T1::elem_type >::result *junk=0)
 principal component analysis of a covariance matrix -- 1 argument version coeff_out -> principal component coefficients

Function Documentation

template<typename T1 >
void princomp_cov ( Mat< typename T1::elem_type > &  coeff_out,
Col< typename T1::pod_type > &  latent_out,
Col< typename T1::pod_type > &  explained_out,
const Base< typename T1::elem_type, T1 > &  X,
const typename arma_blas_type_only< typename T1::elem_type >::result *  junk = 0 
) [inline]

principal component analysis of a covariance matrix -- 3 arguments version coeff_out -> principal component coefficients latent_out -> principal component variances explained_out -> percentage of the total variance explained by each principal component.

Definition at line 32 of file fn_princomp_cov.hpp.

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

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

template<typename T1 >
void princomp_cov ( Mat< typename T1::elem_type > &  coeff_out,
Col< typename T1::pod_type > &  latent_out,
const Base< typename T1::elem_type, T1 > &  X,
const typename arma_blas_type_only< typename T1::elem_type >::result *  junk = 0 
) [inline]

principal component analysis of a covariance matrix -- 2 arguments version coeff_out -> principal component coefficients latent_out -> principal component variances

Definition at line 60 of file fn_princomp_cov.hpp.

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

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

template<typename T1 >
const Op<T1, op_princomp_cov> princomp_cov ( const Base< typename T1::elem_type, T1 > &  X,
const typename arma_blas_type_only< typename T1::elem_type >::result *  junk = 0 
) [inline]

principal component analysis of a covariance matrix -- 1 argument version coeff_out -> principal component coefficients

Definition at line 86 of file fn_princomp_cov.hpp.

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

00090   {
00091   arma_extra_debug_sigprint();
00092 
00093   return Op<T1, op_princomp_cov>(X.get_ref());
00094   }