PDL::PCA - Principal Component Analysis routines for PDL
$a = new PDL::PCA($data,{Averaged => 1,IncludeDims => 2}); $tdata = $a->trans(); $todata = $a->trans($otherdata); $wdata = $a->wtrans(); # Get whitened data $tmat = $a->get_trans(); # Get trans matrix
This is alpha-state code.
This module implements several different algorithms for doing PCA, both off-line (statistics based) and on-line (neural-type) (XXX on-line not yet implemented).
The Averaged and IncludeDims flags are for use when you absolutely want to conserve space (i.e. $data is HUGE).
To install PDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL
CPAN shell
perl -MCPAN -e shell install PDL
For more information on module installation, please visit the detailed CPAN module installation guide.