Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 55130 invoked from network); 6 Aug 2008 21:41:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 21:41:44 -0000 Received: (qmail 96784 invoked by uid 500); 6 Aug 2008 21:41:39 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 96728 invoked by uid 500); 6 Aug 2008 21:41:38 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 96717 invoked by uid 99); 6 Aug 2008 21:41:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 14:41:38 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 21:40:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KQqkm-0005BQ-9A for user@commons.apache.org; Wed, 06 Aug 2008 14:41:08 -0700 Message-ID: <18859308.post@talk.nabble.com> Date: Wed, 6 Aug 2008 14:41:08 -0700 (PDT) From: Pierre8rou To: user@commons.apache.org Subject: Apache.Commons.Math. How to compute Frequency distributions ? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pierre8r-nabble@yahoo.fr X-Virus-Checked: Checked by ClamAV on apache.org Hello, Apache.Commons.Math. How to compute Frequency distributions ? I have a sample array of doubles. It's just a sample, the real array it's a lot bigger. double[] array = { 10.1, 34.0, 15.0, 22.5, 24.2, 31.0, 32.0, 37.0 }; I need to know the frequency for 4 categories. Which is the frequency for the doubles < 10 ? Which is the frequency for the doubles >= 10 and < 20? Which is the frequency for the doubles >= 20 and < 30 ? Which is the frequency for the doubles >= 30 ? Thanks, Pierre8r -- View this message in context: http://www.nabble.com/Apache.Commons.Math.-How-to-compute--Frequency-distributions---tp18859308p18859308.html Sent from the Commons - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org