Re: 95th percentile of an array.

From: Date: Mon, 31 Jan 2011 03:39:43 +0000
Subject: Re: 95th percentile of an array.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-311090@lists.php.net to get a copy of this message
On Sun, Jan 30, 2011 at 8:44 PM, Marc Trudel <mtrudel@wizcorp.jp> wrote: > Just out of curiosity, wouldnt it be better to use floor($n) instead of > round($n-0.5)? > Hi Marc, I don't think so, although I could have missed something (I just quick cranked out the example.) The definition I linked to involves rounding (2.5 would round to 3, and 2.4 would round to 2), so I just included the rounding in the equation. Let me know if you see something I botched. Thanks, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

« previous php.general (#311090) next »