[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Algorithm for finding Median: Got one or can you dissect this?
From: |
Marcus G. Daniels |
Subject: |
Re: Algorithm for finding Median: Got one or can you dissect this? |
Date: |
22 Mar 1999 13:41:00 -0800 |
>>>>> "MD" == Marcus G Daniels <address@hidden> writes:
MD> if (lhs == rhs)
MD> median = (lhs == rhs) ? sorted[lhs] : (sorted[lhs] + sorted[rhs]) / 2.0;
oops, replace that with:
return (lhs == rhs) ? sorted[lhs] : (sorted[lhs] + sorted[rhs]) / 2.0;
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.