Algorithm::DimReduction - Dimension Reduction tool that relies on 'Octave'
use Algorithm::DimReduction; my $matrix = [ [ 1, 2, 3, 4, 5], [ 6, 7, 8, 9,10], [11,12,13,14,15], ]; my $reductor = Algorithm::DimReduction->new; # matrix has been analyzed beforehand my $result = $reductor->analyze( $matrix ); print Dumper $result->contribution_rate; # save and load $reductor->save_analyzed($result); my $result = $reductor->load_analyzed('save_dir'); # reduce it my $reduce_to = 3; my $reduced_matrix = $reductor->reduce( $result, $reduce_to );
Algorithm::DimReduction does Dimension Reduction with Singular value decomposition (SVD).
It relies on svd command of 'Octave'.
Takeshi Miki <t.miki@nttr.co.jp>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Algorithm::DimReduction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::DimReduction
CPAN shell
perl -MCPAN -e shell install Algorithm::DimReduction
For more information on module installation, please visit the detailed CPAN module installation guide.