NAME

Algorithm::MedianSelect::XS - Median finding algorithm

SYNOPSIS

use Algorithm::MedianSelect::XS qw(median);

print median(1,2,3,5,6,7,9,12,14,19,21);

DESCRIPTION

Algorithm::MedianSelect::XS finds the item which is smaller than half of the integers and bigger than half of the integers.

FUNCTIONS

median

Takes an array of integers and returns the median number.

EXPORT

median() is exportable.

SEE ALSO

http://www.cs.sunysb.edu/~algorith/files/median.shtml

AUTHOR

Steven Schubiger <schubiger@cpan.org>

LICENSE

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html