Send As SMS

2/9/2006

get the median of an array

to get the median of an array of numbers, first install the numbercruncher module. then, use the following code:

my($medianValue) = Math::NumberCruncher::Median(\@numArray);


0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.