Bio::Gonzales::Util::Math::kNN::via::Distances - Calculate kNN clusterings from already calculated distances
use Bio::Gonzales::Util::Math::kNN::via::Distances; my $k = Bio::Gonzales::Util::Math::kNN::via::Distances->new( distances => [ [1], [ 2, 3 ], ... ], groups => [ 'group1 row1', 'group row2', undef, 'group row4' ] ); my $result = $k->calc(1);
Distances in lower triangular form (array of arrays).
Groups in array, undef for "test" rows.
jw bargsten, <joachim.bargsten at wur.nl>
<joachim.bargsten at wur.nl>
To install Bio::Gonzales, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bio::Gonzales
CPAN shell
perl -MCPAN -e shell install Bio::Gonzales
For more information on module installation, please visit the detailed CPAN module installation guide.