Joachim Bargsten > Bio-Gonzales-0.0547 > Bio::Gonzales::Util::Math::kNN::via::Distances

Download:
Bio-Gonzales-0.0547.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.0547   Source   Latest Release: Bio-Gonzales-0.0547_01

NAME ^

Bio::Gonzales::Util::Math::kNN::via::Distances - Calculate kNN clusterings from already calculated distances

SYNOPSIS ^

    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);

DESCRIPTION ^

METHODS ^

Bio::Gonzales::Util::Math::kNN::via::Distances->new(...)

distances

Distances in lower triangular form (array of arrays).

groups

Groups in array, undef for "test" rows.

SEE ALSO ^

AUTHOR ^

jw bargsten, <joachim.bargsten at wur.nl>

syntax highlighting: