Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Statistics on Tab Delimited File

by eye (Chaplain)
on Dec 10, 2009 at 22:31 UTC ( #812303=note: print w/ replies, xml ) Need Help??

in reply to Statistics on Tab Delimited File

Using libraries (like Acme::Tools) is not only efficient for coding, it can be a good way to gain the benefit of technical expertise you may not have. I mention this because the OP's code to compute median is fundamentally flawed (median is computed differently for even and odd numbers of items).

For more details on median, see MathWorld.

Comment on Re: Statistics on Tab Delimited File
Replies are listed 'Best First'.
Re^2: Statistics on Tab Delimited File
by Paragod28 (Novice) on Dec 10, 2009 at 22:44 UTC
    Yes I know the median routine is flawed. I was not receiving appropriate outputs against values such as 1e-33 so I decided to sort and cut the list in half and take that number. It is not accurate but close enough for my purposes. I am just trying to get an idea on organism distribution on sequence samples. If anyone knows a way to output the median of scientific notation (evalues)it would greatly help. Thanks again.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812303]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2015-10-07 06:33 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (171 votes), past polls